diff --git a/typo3/sysext/core/Documentation/Changelog/8.7.x/Important-79647-AddedHookForResolvingCustomLinkTypes.rst b/typo3/sysext/core/Documentation/Changelog/8.7.x/Important-79647-AddedHookForResolvingCustomLinkTypes.rst index 72bb167815c5c1a9ea32c1f56ce17d24b2f821d6..ed0dd31967a322fcde9051306b28c9cb073806f0 100644 --- a/typo3/sysext/core/Documentation/Changelog/8.7.x/Important-79647-AddedHookForResolvingCustomLinkTypes.rst +++ b/typo3/sysext/core/Documentation/Changelog/8.7.x/Important-79647-AddedHookForResolvingCustomLinkTypes.rst @@ -41,7 +41,8 @@ An example implementation for custom links that use `myLinkIdentifier:` as a pre return; } - $parameters['result'] = ['myLinkIdentifier' => substr($parameters['urn'], 17)] + // Be aware: substr of 17 because of the identifier and the colon + $parameters['result'] = ['myLinkIdentifier' => substr($parameters['urn'], 17)]; $parameters['result']['type'] = 'myLinkIdentifier'; } }