Unpublished node links are visible to anonymous users

Created on 14 October 2024, 4 days ago

Problem/Motivation
In a website that I maintain, an issue was reported. Some links from contents that are not published, are shown to the anonymous users in the mega menu.

Steps to reproduce
Create some links in a menu, to some contents published and not published
Add the mega menu in a region of the website
Check the website as logged in and logged out user

Proposed resolution
Hide links for anonymous users.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇦🇺Australia ben.campbell

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

Comments & Activities

  • Issue created by @ben.campbell
  • 🇦🇺Australia ben.campbell

    Drupal 10.3.5
    tb_megamenu Version: 3.0.0-alpha4

  • 🇮🇳India kulpratap2002

    @ben.I tried to reproduce this error in Drupal 10 and Drupal 11 both , but i was unable to reproduce this error because the unpublished node links are not visible to anonymous users , i have created 2 nodes one is unpublished and another one published then i have created a menu for both nodes with title article 1 and article 2 and then created a mega menu for that menu but it is working fine, I have attached screenshots you can see.

Production build 0.71.5 2024