ZF-Commons / ZfcUser

A generic user registration and authentication module for ZF2. Supports Zend\Db and Doctrine2. (Formerly EdpUser)
BSD 3-Clause "New" or "Revised" License
497 stars 343 forks source link

Documentation of use_redirect_parameter_if_present #657

Open rarog opened 7 years ago

rarog commented 7 years ago

The behaviour of use_redirect_parameter_if_present doesn't have enough documentation. I had first to dig through the code to find out, that if the option is enabled, the corresponding parameter via GET should be named "redirect". I had to further debug with trial and error until I found out, that the redirect parameter may not start with a trailing slash. Especially this should be documented in detail or function routeExists in RedirectCallback.php should do a ltrim($route, '/') to make sure, that a trailing slash is removed and the function is more tolerant.