Fix redirect will not working when redirect url has ?param=value

Redirect  will be broken when URL likes user/login?redirect=http://pathtozf.com/user`?`param=value