Fix to maintain clean urls when params are in the request