Only display internal links to content the user has access to view

Created on 23 January 2018, over 7 years ago
Updated 12 May 2025, 10 days ago

Currently, if you have a link field with internal links in it, there is no access checking when viewing the field.

This means that if you have a field with links to a mixture of unpublished and published content, anonymous users will see links to the unpublished content (as well as the published content).

If they click on the link, they'll see the access denied message.

It'd make for a better user experience if the links weren't displayed in the first place, unless the user had access to view the content it links to.

This way, anonymous users (who can't access unpublished content) wont see the links, but logged in users with sufficient access can see them.

Feature request
Status

Closed: duplicate

Version

11.0 🔥

Component

link.module

Created by

🇬🇧United Kingdom nicrodgers Monmouthshire, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024