drupal_get_destination gives wrong result

PieterDC - July 7, 2009 - 12:16
Project:Node breadcrumb
Version:6.x-1.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

If node_breadcumb is installed and configured, my login form redirects me to a different page (after login) than the one I came from.

For example:
I have a news item with the path 'news/its-in-the-air-tonight', and I have node_breadcrumb configured so that whenever someone views news content (content type), the news menu-item gets activated (path: 'news'). So far, so good.
But, if I login from a news item, I always get redirected to 'news' (general menu item) while I would like to stay on the news item I was.

Apparently node_breadcrumb uses menu_set_active_item() which sets/overrules $_GET['q']
and the user login block uses drupal_get_destination() which uses $_GET['q'] (if no destination was already set).

For example:
I'm on the 'news/its-in-the-air-tonight', Drupal sees that right, gives the right content, but once node_breadcrumb is done, Drupal thinks it's on the 'news' page, which means the login block thinks that's the page to redirect to after login...

I don't know a solution yet, but I wanted to report the inconvenience...

#1

edhel - August 13, 2009 - 17:16
Status:active» duplicate

almost the same as http://drupal.org/node/341492

 
 

Drupal is a registered trademark of Dries Buytaert.