Breadcrumb link problem

sfelli - September 14, 2009 - 14:49
Project:Gallery
Version:6.x-1.0
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Maybe i found problem with the root album breadcrumb link in the embedded gallery. If you are not logged, the root gallery breadcrumb link will work for the first time you use it. After that, when clicked again it will take you to a blank page.
For example:

- Go to Drupal 6 Gallery2 demo site (http://d6.drupalgallery.com)
- Make sure you are not logged in
- Go to album Central America
- Click to main Gallery breadcrumb (the link is something like http://d6.drupalgallery.com/index.php?q=gallery&g2_highlightId=190&......). It will work and you will be in the root album
- Now go again to album Central America
- Click again to Gallery breadcrumb. It will take you to a blank page

The problem disappear if you are logged in or Drupal cache is disabled.

Thanks for this great module

#1

sfelli - September 23, 2009 - 14:34

Maybe i found a workaround solution after i read this post: http://gallery.menalto.com/node/87198
So i edited file gallery_base.inc and added on line 133 (just below "// Initialize Gallery2")
unset($_GET['g2_highlightId']);
Breadcrumbs seem to work well now but i don't know if there are side effects.
Bye

 
 

Drupal is a registered trademark of Dries Buytaert.