With Symfony’s Action Security if a user has not been identified he will be forwarded to the default login action as defined in the applications settings.yml file. How would I forward the user to the originally requested action after the user is successfully authenticated?
Share
On first hit to your login action, store referer to the user session:
and then when login succeeds, redirect user to stored referer with:
You have complete example in sfGuardPlugin:
http://www.symfony-project.org/plugins/sfGuardPlugin