I want to replace a dynamic url query parameter with another parameter.
Eg. like my url is:
I want to replace everything starting after
&sc_cmp=pcp_GSF_Batteries+%26+Electrical+Accessories_209-0539
and add something like & new Static string
My final url should look like:
http://www.mysite.com/209-0539.prd?pageLevel=&skuId=111-4567& new static string.
Thanks
If you don’t want to include another library, following lets you add as many search items you want removed and add as many as you like without a lot of code
DEMO: http://jsfiddle.net/9VPUX/