[jQuery] Actual URL doesn't works with parameters, fixed !!

[jQuery] Actual URL doesn't works with parameters, fixed !!


Hi everybody,
i've found an issue when the actual url contains some kind of
parameters, that is, if the actual url is:
http://yourdomain.com/login.php?action=send
and there is a menu entry like this:
<li><a href="/login.php">Login</li>
the menu doesn't mark that option as actual because doesn't match "/
login.php?action=send" and "/login.php".
The fix is in jquery.hoveraccordion.js around line 47, add after:
var thisurl = window.location.href;
the line:
thisurl = thisurl.substr(0, thisurl.indexOf("?"));
Hope you enjoy!
Juan Pedro Rubio
Software Engineer