I have this type of hashing URLs,
http://mysite.com/projects/#/article-1/
http://mysite.com/projects/#/article-2/
http://mysite.com/projects/#/article-2/
And I want to remove the hash bit (the fragment) when I click on a button on the page without redirecting the page.
$('.back').click(function(){
// remove the fragment.
// don't know how to make it..
return false;
});
So I can get this only,
http://mysite.com/projects/
How can I do that?
Thanks.
EDIT: How does this site make it? If you click close project on the ajax loaded page, eg -
http://www.pentagram.com/work/#/all/all/newest/2534/
you will get this back,
http://www.pentagram.com/work/#/all/all/newest/
location.hashand I want to remove it when I remove that ajax page.