Allow for preserving query params across redirects

Enables an option to preserve the query string across redirects. Defaulted to false (original behavior).