Issue Feature Closed

#92780Provide Event after page URI has been generated

Sebastian Michaelsen 11/05/20, 20:37 updated 03/31/26, 09:00

Description

After PageRouter->generateUri() has created a link to a page, an event should be dispatched that allows extensions to react to the created URI or modify it.

Whenever an extension author modifies a generated URL they would need to take care that the URL can be resolved again in the end.

Use Case 1 (URL modification):
Via event the generated page URI is modified in a way that url path slugs are rearranged. Once this modified URI is called, a middleware recognizes it and modifies it back, so TYPO3 can resolve it again.

Use Case 2 (URL Logging):
Sometimes you have errors reported or in your logs, where you ask yourself: How did anyone end up on that URL? Where and why was it generated? So it could be useful to maintain a log with debugging information whenever a new URI is generated.

Reviews 3

History 618

  1. Gerrit Code Review pushed patch set 1 for master to change 66900 status New Under Review <span data-processor="relativetime" data-value="2020-11-25T15:11:10+00:00" > 11/25/20, 15:11 </span>

  2. Gerrit Code Review pushed patch set 1 for main to change 92995 status Rejected Under Review <span data-processor="relativetime" data-value="2026-02-25T14:22:40+00:00" > 02/25/26, 14:22 </span>

  3. Sebastian Michaelsen commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-03-26T19:30:12+00:00" > 03/26/26, 19:30 </span>

    Applied in changeset commit:ec8c92f9fb0d86eae103189bafaf1ca0630c09ac.