In IE5 and IE6 under MS Windows, the URLs that Jsdomenu generated are not correct.
While both Mozilla and Mozilla Firefox work good.

The problem is, under IE, When you click an item in the Site-Menu, it add "taxonomy/term/x" to the current url, and when you click an item again, it add again, so it is a dupplicate url, like http://your_site/drupal/taxonomy/term/1/taxonomy/term/1 .

Comments

daniel.beaver’s picture

I'm observing this problem also. Except that in my case jsdomenu does strip back one place. ie if the current url is:

http://your_site/drupal/taxonomy/term/1

and you try to use the jsdomenu to get to taxonomy/term/6 then jsdoumenu will send you to:

http://your_site/drupal/taxonomy/term/taxonomy/term/6

Alternatively if you are currently at http://your_site/drupal/stuff and you try to get to taxonomy/term/6 via jsdomenu it will get it right (http://your_site/drupal/taxonomy/term/6).

I've also tested it in Safari and it got the urls right although there was another problem which I will submit a separate report for.

joel_guesclin’s picture

Title: Bug Report: the Jsdomenu generate wrong URI. » Bug Report: Jsdomenu generates wrong URI - fix/workaround

Don't think that this is a bug in jsdomenu as such, since different browsers behave differently. For example, I find it works fine in FireFox but not in IE (which simply adds things on to the end of the existing URL). Funnily enough in IE, this means that it works fine as long as you use the menu from the front page of the site.

There is a quick hack to get around this problem: in the function "jsdomenu_make" replace this line:

        $item->url = url("taxonomy/term/$item->tid");

with this line:

        $item->url = url("taxonomy/term/$item->tid",NULL,NULL,TRUE);

This will cause jsdomenu to create absolute URLs, and these do seem to work.

nedjo’s picture

Thanks, change made.

Anonymous’s picture