URL redirection causes breadcrumb/menu issue

jhodgdon - November 5, 2008 - 19:43
Project:Session Favorites
Version:5.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Using this module, if you go to the URL you have set up for a user to view his/her list of Favorites, you are redirected to a different URL. For instance, if the base URL is "favorites", you might end up at "favorites/3" (if 3 is the session ID).

However, "favorites/3" is not in the menu system, so it screws up the display of expanded menus, breadcrumb trails, and the like. Is that clear? What I mean to say is that if I add the "favorites" path to a menu, if I was able to go to path "favorites", the menu would be expanded to show where I am in the menu, and the breadcrumb path would show something like home / gallery / favorites (or whatever). But since I am redirected to "favorites/3", which is not in the menu, my menu isn't expanded and the breadcrumb trail just shows "home".

I got around this by changing the code in the module so it doesn't redirect to favorites/SID if a user is viewing their own favorites list, it just stays on the base path. I'm not sure if this is useful as a general solution, but breaking the breadcrumbs and menus is not really OK... any better ideas of how to resolve this?

 
 

Drupal is a registered trademark of Dries Buytaert.