[BUGFIX] SoftReferenceIndex parses new TypoLink format correct
Since the introduction of the new TypoLink format like t3://page?uid=1 the SoftReferenceIndex is parsing these TypoLinks wrong, and does not parse t3://record at all. This patch adds the same parsing of typolinks than the one done by LinkService, and removes old and duplicated code. This patch also fixes the missing softref when a typolink contains an anchor to a tt_content. The signal `getTypoLinkParts` is removed from execution, because it is not needed anymore, as all is handled via LinkService capabilities directly. Resolves: #84016 Releases: master, 9.5 Change-Id: I4b83cd43af938de084aebc1b4bf424e6bb2d9682 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/57610 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/core/Classes/Database/ReferenceIndex.php 2 additions, 2 deletionstypo3/sysext/core/Classes/Database/ReferenceIndex.php
- typo3/sysext/core/Classes/Database/SoftReferenceIndex.php 108 additions, 114 deletionstypo3/sysext/core/Classes/Database/SoftReferenceIndex.php
- typo3/sysext/core/Tests/Unit/Database/SoftReferenceIndexTest.php 179 additions, 0 deletions...ysext/core/Tests/Unit/Database/SoftReferenceIndexTest.php
Please register or sign in to comment