stechstudio / filament-impersonate

Filament plugin that makes it easy to impersonate your users
271 stars 55 forks source link

backTo() - Fallback to referer when fingerprint.path doesn't exist #66

Closed jamesdb closed 9 months ago

jamesdb commented 9 months ago

Thank you for the great package!

We have encountered an issue when leaving impersonation after upgrading to Filament 3 + Livewire 3.

Upon leaving impersonation, the user is always redirected back to Filament::getCurrentPanel()->getUrl() - /admin due to fingerprint.path always being null.

We have got round this issue for now by using ->backTo(), but i believe we could fix the problem by falling back to the referer.

I've been running the referrer changes locally and everything seems to be working as expected 👍