[drupal-devel] [bug] "my account" menu item oddities

tangent drupal-devel at drupal.org
Fri Jan 28 11:39:11 UTC 2005


 Project:      Drupal
 Version:      4.5.0
 Component:    menu system
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  jasper
 Updated by:   tangent
 Status:       patch

It seems unlikely that I am the only one to notice/realize this so I'm
probably missing something but ?=/user currently redirects to the "my
account" url. Therefore, shortening the link to simply "/user" would
make the url generic and serve the intended purpose no?

tangent



Previous comments:
------------------------------------------------------------------------

November 19, 2004 - 16:03 : jasper

1. "my account" link can not be given "weight"

2. If edited, "my account" link behaves strangely: appears as separate
menu in admin screen, disappears from navigation menu, etc.

3. Subitems can't be added under my account, or, strange things happen
if you try to do that.

------------------------------------------------------------------------

November 25, 2004 - 06:36 : jasper

Reproduce the error:

1. Assign sub-menus to "my account"  menu item

2. edit "my account" menu item - capitalize "My Account"

result:

1. sub-menus disappear from navigation block 

2. "My Account" becomes separate Menu at the bottom of the menu
administration page.

I would really like to capitalize the "my account" link. Any way to do
that without bugging out the menus?

------------------------------------------------------------------------

December 18, 2004 - 01:05 : jasper

anybody?

------------------------------------------------------------------------

January 27, 2005 - 14:36 : JonBob

Attachment: http://drupal.org/files/issues/user_13.patch (705 bytes)

The "my account" menu item includes the user ID, so really cannot be
customized. This is unfortunate. The attached patch corrects the
mentioned bug by locking the menu item as it should be, but doesn't
address the usability issue of not being able to customize the menu
item. I suggest we move ahead with this patch for the 4.5 branch and,
since time is short, likely 4.6.

Any suggestions for how to make this item editable? I think we'd need
some way to have multiple paths for a single menu item... wildcards or
something. But an implementation escapes me.

------------------------------------------------------------------------

January 27, 2005 - 14:50 : Steven

Perhaps we could change the path for "my account" to "user/me" or
something? Link-wise it's not too hard to implement, just do "user/".
($account->uid == $user->uid ? "me" : $account->uid) or something when
linking to that page.


------------------------------------------------------------------------

January 27, 2005 - 16:35 : Dries

The patch did not apply cleanly against DRUPAL-4-5.  I modified the
patch and committed it to DRUPAL-4-5 and to HEAD. I'm leaving this
issue open for a couple more days. 

------------------------------------------------------------------------

January 27, 2005 - 18:21 : Boris Mann

The same issue comes up with other menus that include the user ID (there
are a couple, can't recall exactly which).

While user/me is interesting, it would then be inconsistent with things
like blog/UID and blog/UID/feed.

Adding something like [uid] to menu creation might make menu code more
complex, but should work.

-- 
View: http://drupal.org/node/13184
Edit: http://drupal.org/project/comments/add/13184





More information about the drupal-devel mailing list