Issue Bug Closed

#84771Links should not be rendered for pages that are hidden (due to language settings)

Sybille Peters 04/17/18, 20:37 updated 10/29/19, 16:47

Description

If there is a link to a hidden page, this link is not rendered as a link (only the anchor text is displayed as plain text).

What I would expect

For any page that will not be visible in the current language (and causes a 404), the link should not be rendered as clickable link.

Current behaviour

The following are rendered as links:
  • Link target has “Hide default translation of page” set + default language
  • Link target has “Hide page if no translation for current language exists” set + use language for which page has no translation

Reproduce

  1. Make sure “Show hidden pages” is not selected in admin panel
  2. Create links for cases above and view page.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.