I want admin users to be redirected to the url they opened after login.
They should get links to a custom module page in the admin area, like
Obviously, they will be redirected to the login page, unless they are already logged in.
How can I redirect them back to this page after login?
Secret keys in the URL are disabled and can stay that way.
Now they get the configured default page (default was Dashboard) instead.
Best Answer
As all the comments stated before, its not out of the box. Here are some hints on where/what you may need to adjust:
I have never tried it but this seems to be the method called from
and there is the IndexAction that calls the above function. Since this is the admin, doing a rewrite of the Model will probably be easier.
So, modifying getStartupPageUrl() to have your URL seems very likely the best place to try this.
This is all theoretical, I have not tried it yet, but if you need a sample module, I can certainly run through this and provide it.
If every admin user will end up on the same page, its pretty easy to do, if there is some dynamic elements, it will be a bit harder to facilitate. Good Luck!