[BUGFIX] Consider path links with leading slash as `url`
`ext:redirects` allowed to redirect to absolute target path. With #97159 the target field TCA type has changed and did not allowed to enter a path identifier since then. This change lets the `LinkService` resolve a path identifier not matching a file or folder as type `URL` and restore the ability to create path based redirect target links. Additionally, it's now possible again to link directly `/` again in link fields or RTE fields (#97693). The underlying solution is that "old-school" links to files (before FAL) to e.g. "fileadmin/mydownload.exe" is now actually treated as an external URL, and not as a automatically detected file anymore. Resolves: #101083 Resolves: #97693 Related: #97159 Releases: main, 12.4 Change-Id: Ib6a1503137b1c424c55aa3785f6c5d260b5a3aad Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79734 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php 11 additions, 0 deletions...core/Classes/LinkHandling/LegacyLinkNotationConverter.php
- typo3/sysext/core/Classes/LinkHandling/UrlLinkHandler.php 2 additions, 1 deletiontypo3/sysext/core/Classes/LinkHandling/UrlLinkHandler.php
- typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkSoftReferenceParserTest.php 4 additions, 0 deletions...andling/SoftReference/TypoLinkSoftReferenceParserTest.php
- typo3/sysext/core/Tests/Unit/LinkHandling/UrlLinkHandlerTest.php 25 additions, 0 deletions...ysext/core/Tests/Unit/LinkHandling/UrlLinkHandlerTest.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php 8 additions, 13 deletions...nd/Tests/Unit/ContentObject/ContentObjectRendererTest.php
- typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php 8 additions, 24 deletions...res/ArrayAssertions/RenderPreviewExportPageAndRecords.php
- typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php 3 additions, 19 deletions...l/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php
- typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php 5 additions, 21 deletions...nal/Fixtures/ArrayAssertions/RenderPreviewExportTable.php
- typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/pages-and-ttcontent-complex.xml 103 additions, 149 deletions...ional/Fixtures/XmlExports/pages-and-ttcontent-complex.xml
- typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/pages-and-ttcontent.xml 234 additions, 280 deletions...ts/Functional/Fixtures/XmlExports/pages-and-ttcontent.xml
Please register or sign in to comment