Drupal 6 - Menue-Links are wrong

jojoe

Joined: 2003-12-07
Posts: 6
Posted: Wed, 2008-04-30 10:02

Hi Friends,

I've finally managed to set up 6.2 + Gallery2 (but just the 2.2 from trunk - the 2.3svn wouldn't work). And all works fine except the link generation for the menue. (fyi: URL-Rewrite is off)

Here is the link the drupal headmenu generates:

/index.php?q=de/gallery&g2_itemId=16810&g2_highlightId=16812&g2_GALLERYSID=d02439b512e7b5b08a9ea9d2abf5d243

This url ends in 404 not Found - as 'de' seems to be the language. When i delete manually the de/ it works well.

The menu generated for the Drupal-Menu is a bit more awkward:

/index.php?q=de/gallery&g2_itemId=16810

The & is html-encoded- I've tried to find the places in the .module but stucked a bit.
So, I hope we got forward to a release version as i like to have this one :)

thanks so far.
Joe

 
jojoe

Joined: 2003-12-07
Posts: 6
Posted: Wed, 2008-05-14 11:01

Hi all,

i played around a bit. i activated short urls and i got the problems described. i changed in
gallery_base.inc line 77 a bit:


  if (function_exists('language_url_rewrite') && $language->prefix) {
 //   $embed_uri = str_replace('index.php?q=', 'index.php?q='.'/', $embed_uri);
  $embed_uri = str_replace('index.php?q=', '', $embed_uri);

This little change works fine for me. the menue looks fine as well. But not if you surf deeper than one the first hierarchy layer.
If you want to take a look: http://www.stamm-hattstein.de/gallery

 
jojoe

Joined: 2003-12-07
Posts: 6
Posted: Tue, 2008-06-10 11:19

Ok,
finaly this behaviour occurs just if you have activated more than one language in drupal. By deleting the second language it runs without problems.

 
rennt

Joined: 2008-07-29
Posts: 1
Posted: Tue, 2008-07-29 17:26

The same problem I had. Just disabling the languages in drupal works. ( Administer/Site onfiguration/Languages )
Hope there will be a correction soon to be able to use it in multi language environments.