Added method to remove parameters from the URL