This PR adds the ability of setting the redirect leave URL when starting to impersonate a user. It does this via a query parameter, and sets in the session if it is present. When leaving the impersonation it checks if it is present in the session and uses this as a redirect url.
I needed this feature for a project for a client I am working on. Hopefully you also find it useful and it can get merged to the package.
This PR adds the ability of setting the redirect leave URL when starting to impersonate a user. It does this via a query parameter, and sets in the session if it is present. When leaving the impersonation it checks if it is present in the session and uses this as a redirect url.
I needed this feature for a project for a client I am working on. Hopefully you also find it useful and it can get merged to the package.