See attached pictures.
How can this be stopped?

Furthermore, I would like to add "Forgot Password?" (path: user/password) to the user-menu, so that it appears together with "login" and "register" if a user is not logged in. "login" (path: user/login) and "register" (path: user/register) work fine Drupal automatically shows them, if a user is not authenticated and they dissapear if a user is logged in. But that, so it seems, does not work with "Forgot password?". Putting it below "Login" (picture 4) does not work.
Any ideas? Thank you.

CommentFileSizeAuthor
#10 1038856-2.patch512 bytesmontesq
#6 1038856.patch1.06 KBmontesq
4.jpg36.91 KBNikdilis
3.jpg94.93 KBNikdilis
2.jpg19.3 KBNikdilis
1.jpg17.45 KBNikdilis

Comments

tzeal’s picture

in admin - navigation menu u can change that just drag drop below the menu and submenu

Nikdilis’s picture

??? I don't understand what you mean, sorry. Can you explain a little bit more detailed? Thank you.

montesq’s picture

Status: Active » Postponed (maintainer needs more info)

@Nikdilis:
1° Please, use 1 issue for 1 problem, otherwise it becomes a mess..
2° For the forgot password, I think this the same as #550254: Menu links are sometimes not properly re-parented. Indeed, when you create the link and put the link as child of login + save and then edit again the link, you can see in the form that the parent link has changed to "navigation" instead of staying "login"...
3° For the issue in the title, I can't reproduce, please give us the steps to clarify and reproduce

Nikdilis’s picture

Status: Postponed (maintainer needs more info) » Active

@ #3 3°:
Have a first menu: Navigation and a second menu: User menu with 'My account' enabled. Save.
Klick on the 'My Account' in the User menu. Now the 'My account' register appears also in the Navigation bar as the pictures in post #1 document it.

montesq’s picture

Version: 7.0 » 7.x-dev

Ok I reproduce also on 7.x-dev...

montesq’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

Proposed patch in attachment.

Status: Needs review » Needs work

The last submitted patch, 1038856.patch, failed testing.

montesq’s picture

Status: Needs work » Needs review

#6: 1038856.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 1038856.patch, failed testing.

montesq’s picture

Status: Needs work » Needs review
StatusFileSize
new512 bytes

Status: Needs review » Needs work

The last submitted patch, 1038856-2.patch, failed testing.

montesq’s picture

Title: When clicking on My-Account in User-menu, the My-Account-register shows up in navigation menu » "My account" link is displayed when the navigation menu is source of main links
Component: menu.module » user.module

Don't take care my previous tries, I forgot to read comments in the code...
1° To reproduce:
- on a fresh install in ?q=admin/structure/menu/settings set "navigation" as the source of main links
- go to ?q=user
=> "my account" is displayed in the main links (with garland theme)

2° In the implementation of hook_menu (in user.module), I can see that the path user/%user is linked to the navigation menu.
The work around was introduced in #925778: User edit title is broken (so is beta1-beta2 upgrade path) for these reasons:

By assigning a different menu name, this item (and all registered child paths) are no longer considered as children of 'user'. When accessing the user account pages, the preferred menu link that is used to build the active trail (breadcrumb) will be found in this menu (unless there is more specific link), so the link to 'user' will not be in the breadcrumb.

We could assign user/%user to a "fake" menu, but it would be a very dirty fixed! I'm investigating on the function that generates $main-links, but not sure that my noob level would success finding something appropriate.
Advices are welcome...

Nikdilis’s picture

#3 1°:
Ok. The 'forgot password' issue can be found here: http://drupal.org/node/1052260

Michsk’s picture

Glad i found this issue, thought i was doing something wrong (the my account link issue).

Subscribing.

Nikdilis’s picture

Component: user.module » menu system

Let's change this to Component 'Menu System'.

sun’s picture

Status: Needs work » Closed (duplicate)

I may be mistaken, but this sounds like a duplicate of #1564388: "My account" link is never in the active trail