While retrieving items via AJAX etc., the links are set to do this:
$(this).click(function(){
ajax_function(); // hypothetical ajax call that puts data into a <div> of my choice
return false;
});
In this scenario, I’m wondering what the best way is to utilize jQuery to add things to my URL in this format:
http://www.mydomain.com/products
turns into
http://www.mydamain.com/products#category-12,page-4
Further note- I’m talking about the actual URL of the browser (in the URL bar) not a URL that is part of the DOM.
After searching some more (with better keywords than before on Google) I found the answers I needed, and I wrote the following functions: