Hi,

I have an entry in my Primary Links menu which has a path of 'user/albums'.
The entry isn't visible in the menu when logged in to Drupal. The logged in user has full access permissions.
It only becomes visible when logged out. Of course at that point there is no 'user', so I would be happier if this behaviour was reversed!

I notice the same problem exists when the path is just 'user'.
I guess the problem has something to do with the fact that there are no actual nodes at those paths. However, putting 'user/albums' or 'user' as the end of the url in the browser works without problems. (I believe the pages are generated programmatically by modules.)

Does anyone know why this is happening, and is there a workaround?

Thanks in advance.

Comments

chandar’s picture

Sorry I also face similar issue but do not have solution for this.

I use BURNT theme and when this theme is used, all the primary links are not visible but for all other themes, the links are visible.

Does this mean, this is something to do with the style?

May be someone throw light on this, I hope!

Thanks in advance

Chandar

lemmy’s picture

Hi Chandar,

I think we have different problems - all of my primary links appear, except for those with paths 'user' or 'user/albums'.

Take a look in you page.tpl.php file for that theme. Do you see the following code?

        <?php if (isset($primary_links)) : ?>
          <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
        <?php endif; ?>

If not, you should add it in. If you look at the page.tpl.php file from another theme where the primary links are working, you will see where the code should go.

lemmy’s picture

I anyone could check whether they have the same issue, that would be really helpful. (Just change the path of one of your Primary Links to 'user') Thanks.

lemmy’s picture

Bumping this one in the hope of some help.
Thanks.

kenljr’s picture

I have the same problem. The way I was wanting to use it was to have a private page for everyone of my users "clients" so they could track all the service Ive done for them by using the private module and tracker module. By making the link to user/ it would take them to there user account and they could just click track and their history page would be there because I made them the author of the page. If anyone knows how to fix this give me a shout, or if you have another idea on how to do what I'm trying to do it would be awesome!

kenljr’s picture

I tried adding a / in front of user "/user" and it worked. It now shows it in the navbar and when click corrects by removing the /. hey lemmy try this and tell us if it works!

ksmith911’s picture

Putting the "/" in front worked for me! Thanks!