The redirect middleware now passes the trailing part of the URL, including query string to target URL.