[jQuery] [Treeview] Persistent location with pages with a query string
Hi,
I have several php pages in my menu and the menu works fine. The
persistent location function works well, but some of these pages can
have a query string (eg. http://mydomain.com/page.php?sortby=name).
My problem is that Treeview doesn't recognize that the above is the
same page as http://mydomain.com/page.php which is in the menu.
I assume I need to strip the querystring somehow, and that it should
be done in this code (from jquery.treeview.js):
case "location":
var current = this.find("a").filter(function() { return
this.href.toLowerCase() == location.href.toLowerCase(); });
if ( current.length ) {
current.addClass("selected").parents("ul, li").add( current.next
() ).show();
}
Can someone help me to achieve this?
Thanks in advance!
Kind regards,
Jasper Metselaar