removing query parameters from the url, so it won't duplicate when reappended