symfony - How to get previous url before Symfony2 redirects to login page -


i configured authentication below:

pattern: ^/secured/* form_login:   check_path: _login_check   login_path: _login #/login 

that is, when enter http://www.example.com/secured/user, redirect http://www.example.com/login without information /secured/user uri.

i need know using later. so, how can uri?

after user logged in correctly can rederected him referer url using

$this->getrequest()->headers->get('referer') 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -