RejectedSoftware Forums

Sign up

Redirect without query strings

When redirecting using the web.redirect, it preserves the query strings.
How can I prevent this? I'd like to process the queries, then redirect to a different page without the queries.

(It doesn't do this when using the HTTPServerRequest.redirect, but that doesn't redirect using the full url. And I'd like to be able to use web's redirect.)

Re: Redirect without query strings

On Sat, 28 Mar 2015 21:41:45 GMT, Lemonfiend wrote:

When redirecting using the web.redirect, it preserves the query strings.
How can I prevent this? I'd like to process the queries, then redirect to a different page without the queries.

(It doesn't do this when using the HTTPServerRequest.redirect, but that doesn't redirect using the full url. And I'd like to be able to use web's redirect.)

This is actually a bug in URL.localURI. It didn't set the queryString and anchorFields correctly if those were absent.

Fixed now by 43e297c.