There is no license information available for the latest version (1.0.0) of this package.

Sends the missing PageUriGenerated PSR-14 event from the PageRouter

Installs: 22 459

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0


1.0.0 2022-03-09 11:57 UTC

This package is auto-updated.

Last update: 2023-11-10 11:39:37 UTC


Provides a PSR-14 event to respond to generated page URIs

The core TYPO3 PageRouter doesn't offer the possibility to modify generated URLs. This extension replaces the PageRouter->generateUri method and dispatches a PSR-14 event to react to or modify generated URLs.

TYPO3 core issue

An issue for the TYPO3 core has been created on forge: #92780. This extension is meant as an intermediate solution and becomes obsolete as soon as the core PageRouter offers such an event.



composer req smic/page-router-event dev-master

Register an event listener in the Services.yaml:


      - name: event.listener
        identifier: 'MyExtReactToGeneratedUri'
        event: Smic\PageRouterEvent\Event\PageUriGenerated

Your event listener receives a Smic\PageRouterEvent\Event\PageUriGenerated event that offers:

  • getters for input data that were used to generate the URL ->getFragment(), ->getParameters(), ->getRoute(), ->getSite(), ->getType()
  • a getter for the generated URI ->getUri()
  • the PageRouter itself ->getPageRouter()
  • and a setter to replace the generated URI ->setUri($uri)

If you're not familiar with PSR-14 event handling in TYPO3 have a look at: