[英] jquery: change the URL address without redirecting?
Modify Address Bar URL in AJAX App to Match Current State
How can I change the URL address without redirecting the page?
For instance, when I click on this link below:
<a href="http://mysite.com/projects/article-1" class="get-article">link</a>
I will grab the URL from the link:
var path = object.attr('href');
window.location = path;
I want to do something like this site, when you click on the image, the ajax call will fetch the requested page and the URL address on the window will be changed too, so that it has a path for what you click.