Feature: #99807 - Improve ModifyUrlForCanonicalTagEvent
See forge#99807
Description
The \TYPO3\
, used by listeners
to manipulate the URL of the canonical
tag, has been improved. The event is
now being dispatched after the standard functionality, such as fetching the
URL from the page properties, has been executed.
Additionally, the event is now even dispatched, in case the canonical tag
generation is disabled via TypoScript disable
or via
page properties no_
. If disabled, the new
\TYPO3\
is being
thrown in the Canonical
. The exception is caught and transferred
to the event, allowing listeners to determine whether generation is disabled,
using the new get
method, which
either returns the exception with the corresponding reason or null
.
Impact
By relocating and extending the Modify
,
listeners are now able to fully manipulate the canonical tag generation, even
if the generation is disabled and after the standard functionality has been
executed.