Zf3 Zfcuser redirect param does not work

238 views Asked by At

Zfcuser provide an option to redirect to specified route with query param "redirect" like that:

/user/login?redirect=/en/about

Zfcuser 1.* version on ZF2 works perfectly. But recently I migrate to ZF3 and Zfcuser 2.0.0 version and noticed that this functionality does not work.

Everything is configured properly. Does some one experienced same problem?

1

There are 1 answers

3
Ivo On

I made more research to the problem and it appears that the module does not support passing an uri as redirect param. It accepts only named routes. Also there is a problem with encoding and when using route like "home/about" it fails becouse of the "/" which is urlencoded and should be decoded.

I forked the module repo and fixed this. Also provided an option to pass not only named routes but and specific uri https://github.com/ivok/ZfcUser/tree/redirect