I have a menu item that is set for anonymous users only. Unfortunately, it also appears on the menus of authenticated users. What should I be doing to prevent this?


fago’s picture

Status: Active » Fixed

make sure that there is no other menu item that points to the same path. If the second one can't be deleted, delete your custom created one and use the other one.

pls reopen, if this wasn't the case.

majortom’s picture

Status: Fixed » Active

There is no current menu item that points to this node. Here are the steps that I took to get to this point.

I first created two menu items with the same name, but that had different targets, one was supposed to be visible only to authenticated users, the other to anonymous. Set their permissions appropriately. Unfortunately, both appeared for all users.

Next, I changed one's name. Still no luck.

Then, I deleted both menu items and created a new one with only anonymous permission. Still appears for both roles.

Does that help at all? :-)

P.S. I am running 31 May release.

majortom’s picture

As an aside, it would be great if what I was trying to do in the first place was possible: have duplicate menu items that point to different places based on role.

So for example:

Go to your Blog ---> http://example.com/register (for anonymous users)

Go to your Blog ---> http://example.com/myBlog (for authenticated users).

fago’s picture

I've just tested it and it works like you desire it.
Perhaps try to remove your two items and start with two fresh ones.

Have you applied the patch and the module working else?

AlexisWilke’s picture

Status: Active » Closed (won't fix)

This is 3 years old... I'm closing it. Hopefully you'll be able to upgrade to 6.x and get that resolved. There are no 5.x maintainers.