-
Broken links are marked in RTE by using the attribute data-rte-error in the <a> tag, which results in a special style and lets the link be visible as broken. Previously this was not done for links to hidden pages and links to content elements. These links were however detected as broken by linkvalidator and displayed in the list of broken links. Marking them in RTE as well makes the behaviour consistent. This patch ensures the consistency between the list and the visual highlighting in RTE elements for links to hidden pages and hidden content elements. Highlighting links to hidden pages/content elements on hidden pages may be visually relaxed to a notice instead of an error in a dedicated patch as feature. One PHP8.0 array key warning is fixed along the way. Resolves: #93005 Releases: main, 11.5 Change-Id: Ib1ef4b81ab862657950a38e5ee6847dd82abb13f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67039 Tested-by: Stefan Bürk <stefan@buerk.tech> Tested-by: core-ci <typo3@b13.com> Tested-by: Nikita Hovratov <nikita.h@live.de> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Nikita Hovratov <nikita.h@live.de> Reviewed-by: Benni Mack <benni@typo3.org>
27859172