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

Redirect  will be broken when URL likes user/login?redirect=/album/add`?`param=value