Possible Duplicate:
Changing browser's address bar without refreshing
I am developing a shopping cart, in it I have multiple collections, by clicking on one collection, all products corresponding to that collection should display and the url in the address bar should be like this:
http://example.com/collection1
I have tried
window.history.pushState('Object', 'Title', '/new-url');
This works fine in all browsers except IE. However I have also tried
window.location.hash = 'collection_name';
But it shows url like http://example.com/index.html#collection1
, which is not correct in my case.
Can anyone help me to resolve this problem??