I'm building a series of basic accordions for a project.
We want them to have static, linkable pages. So we've created invidividual pages for each of the open states as well.
For example,
/whoweare is the main slider.
But we have a sub slider located at /whoweare/whatwedo
What I'm looking to have done is, when a user clicks a header on /whoweare, the slider opens, and the url bar updates to /whoweare/whatwedo, but there is no actual redirect. The url location should simply change, nothing more.
I've tried using
window.location.replace($(this).attr('href'));
return false;
But that doesn't seem to have accomplished what I wanted, it still reloads onto a new page.
Any other suggestions?