I want to change my url on click without refreshing page. For example my URL is http://test.com?search=test
When I click any filter value on the search page like "category" then my URL should be:
http://test.com?search=test$category=cat1
When I click on another category it should be:
http://test.com?search=test&category=cat1,cat2
When I click a brand then the URL should be:
http://test.com?search=test$category=cat1,cat2&brand=br1
When I deselect a category then the URL should be:
http://test.com?search=test$category=cat2&brand=br1
Please help me.