Skip to content
  • speters's avatar
    [BUGFIX] Mark broken links to hidden page and CEs · 83daec59
    speters authored and Benni Mack's avatar Benni Mack committed
    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/+/72913
    
    
    Tested-by: default avatarcore-ci <typo3@b13.com>
    Tested-by: default avatarBenni Mack <benni@typo3.org>
    Reviewed-by: default avatarBenni Mack <benni@typo3.org>
    83daec59