Remove query string when redirecting user.