Remove the extra params from the url