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.
Comments
Comment #8
codebymikey commentedComment #12
anybodyAgree this still makes sense, we just ran into such a situation where a target node is unpublished for some translations, while others are published. Only the published ones should be linked.
I guess it would make sense to configure that behavior in the field formatter? While the default behavior should be the current, to not have a BC.
Comment #14
joachim commentedClosing as a duplicate of #3231247: Prevent inaccessible links from being displayed in LinkFormatter.