You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have 2 Filament resources. Organization and User. An organization has many users and the OrganizationResource edit page contains a RelationshipManager on which users can be impersonated.
This setup breaks the "Cancel" button on the organization page as this button seems to make use of the "_previous" session key. This key is not cached when impersonating. Because of this, the cancel button tries to take you back to the URL you were on while in impersonation mode.
The text was updated successfully, but these errors were encountered:
It makes sense that the _previous session key would point back to the URL you were on while impersonating, if that is indeed the last page you visited. Not sure how to change that.
Keep in mind this package is a thin wrapper for Filament. The heavy lifting is done by https://github.com/404labfr/laravel-impersonate. If you think there is an opportunity to cache/preserve the _previous URL when entering or leaving impersonation, that's likely the repo where you want to have that discussion.
We currently have 2 Filament resources.
Organization
andUser
. An organization has many users and theOrganizationResource
edit page contains a RelationshipManager on which users can be impersonated.This setup breaks the "Cancel" button on the organization page as this button seems to make use of the "_previous" session key. This key is not cached when impersonating. Because of this, the cancel button tries to take you back to the URL you were on while in impersonation mode.
The text was updated successfully, but these errors were encountered: