Open cardei opened 1 year ago
It will be nice to have this in the main repository 😉
This is a nice feature that i have wanted for some time :) Instead of doing it directly in the ImpersonateController
I think it would be prettier to do it in the ImpersonateManager
@MarceauKa what is needed for this to be merged into master?
It is a small improvement that will permit to pass a redirection url when it is needed. To pass a url different from the used in config file:
Use
Session::put('imp_back_url', 'CUSTOM_URL');
before impersonate
Example of use before impersonate:
This session imp_back_url will be cleared when user leave impersonate.
With this small improvement it is posible to pass custom redirection url when needed or use default from config if it's not passed trough session.
It is working fine and solved my needs. I hope it's make sense.