stripping queryparams from the url to remove duplicates