[!!!][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:Benni Mack <benni@typo3.org> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/core/Documentation/Changelog/13.0/Breaking-99807-RelocatedModifyUrlForCanonicalTagEvent.rst 51 additions, 0 deletions...Breaking-99807-RelocatedModifyUrlForCanonicalTagEvent.rst
- typo3/sysext/core/Documentation/Changelog/13.0/Feature-99807-ImproveModifyUrlForCanonicalTagEvent.rst 36 additions, 0 deletions....0/Feature-99807-ImproveModifyUrlForCanonicalTagEvent.rst
- typo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php 26 additions, 22 deletionstypo3/sysext/seo/Classes/Canonical/CanonicalGenerator.php
- typo3/sysext/seo/Classes/Event/ModifyUrlForCanonicalTagEvent.php 9 additions, 3 deletions...ysext/seo/Classes/Event/ModifyUrlForCanonicalTagEvent.php
- typo3/sysext/seo/Classes/Exception/CanonicalGenerationDisabledException.php 25 additions, 0 deletions...lasses/Exception/CanonicalGenerationDisabledException.php
- typo3/sysext/seo/Tests/Functional/Canonical/CanonicalGeneratorTest.php 7 additions, 3 deletions...seo/Tests/Functional/Canonical/CanonicalGeneratorTest.php
- typo3/sysext/seo/Tests/Unit/Event/ModifyUrlForCanonicalTagEventTest.php 30 additions, 5 deletions...eo/Tests/Unit/Event/ModifyUrlForCanonicalTagEventTest.php
Please register or sign in to comment