Current Location Highlight BUG

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
kendra
Advanced
Advanced
Posts: 24
Joined: Wed Sep 28, 2005 5:55 am

Current Location Highlight BUG

Post by kendra »

I think that I have found a bug.

When you select a menu item, the menu Highlights your current location. This works good if the location matches exactly.

The problem is that sometimes the url can be pointing to the same location but be a little different.

Examples

1. Highlighting works
http://insarnia.ca/getdomain/index.php

2. Does NOT work
http://insarnia.ca/getdomain/

3. Does NOT Work
http://insarnia.ca/getdomain/index.php? ... ain=addnew

So all 3 of these examples point to the same url but only one matches exactly so its the only one highlighted.

If we get it to ignore switches added to a menu url? So

http://insarnia.ca/getdomain/index.php
and
http://insarnia.ca/getdomain/index.php? ... ain=addnew

Are still the same thus wil both highlight current menu location

Thanks
Kendra
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Kendra,

I'm not really understanding what you mean. Those are NOT the same url. They may go to the same place but they aren't the same url. The menu program has no way of knowing that all those differently expressed urls mean the same page.

And, I'm not sure what you want? Are you saying you want all the items that go to that page, even if the url is different in each item to show the highlighting? For example

Code: Select all

Item 1; url=http://insarnia.ca/getdomain/index.php 

Item 2; url=http://insarnia.ca/getdomain/ 

Item 3; url=
http://insarnia.ca/getdomain/index.php?action&domain=addnew 
If you want all those links from the menu items to show highlighting when one is clicked you need to use the pagematch property. Information on that can be found in the Menu Properties Quick Reference Guides, Menu Item Properties The property you want is pagematch.

If this is not what you meant could you please provide a link and point out the 3 items to test and what you want them to do?

Ruth
Post Reply