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
Post a Comment