I have a varient that finds the current url and splits it as follows:
var ehref = window.location.href.split('?',1);
This is then used to match the url with a navigation link href and give
an ID to the page. My issue is that when our cookie pop up is closed, #
is added to the url. Subsequently the page links are passed around
between users with the # and the page ids do not work.
What is a simple way of splitting the url at a # as well? I am new to
jquery, thus I understand the gist of what I'm 'reading,'
but anything I've tried from researching the net has broken the
page. I can replace the '?' With '#' but that
doesn't really solve the issue.
Thanks!