Skip to content
Snippets Groups Projects
Commit a4f96a98 authored by Bastien Lutz's avatar Bastien Lutz Committed by Oliver Bartsch
Browse files

[!!!][FEATURE] Always allow listeners to manipulate the canonical URL

The ModifyUrlForCanonicalTagEvent is now always dispatched at the
end of the generation process, just before the tag is being built.

This way, listeners are now able to fully influence the generation
of the canonical URL, after the standard functionality, e.g.
fetching the URL from page properties, has been executed.

Additionally, the Event is now also always dispatched, in case
the canonical tag generation is disabled via TypoScript or via
page properties. This information is then available using the
new getCanonicalGenerationDisabledException() method.

Resolves: #99807
Releases: main
Change-Id: I3a8d71755149191caaefd3a67e3fc7db15dcbe6d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77682


Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 0c0cfdac
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment