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
Merge pull request #371 from atans/patch-1

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