Strip query string from route path