Makes sure that the query string is copied when redirecting to a fixed path.