I was curious about how people update url when making ajax calls. There’re 2 major techniques, hash and HTML5 History. when we make an ajax call, we will update the url with the hash value appending to it. When the page is first loaded, we will check the hash value stored in window.location.hash and perform the ajax call accordingly. HTML5 also provides the function called pushState in History so that you can store the state in the history object. You can find more details at the source below
Source via: http://blog.mgm-tp.com/2011/10/must-know-url-hashtechniques-for-ajax-applications/
URL Hash Techniques for AJAX Applications
