When using multi-tenancy, is there a way to remain on the current resource when switching tenant?
Currently, when switching tenants, it defaults back to the dashboard screen. Can it remain on the current resource instead?
4 Replies
i'm interested in this as well.
found were u can change it, should override the component i think:
components/tenant-menu.blade.php
and from what i read it's discouraged to change views in filament. so a PR should be made.
i've created a PR here:
https://github.com/filamentphp/filament/pull/11228
GitHub
preserve current url when switching tenant if current user can acce...
This PR adds functionality to preserve the current page/url when changing to another tenant.
@shenntek Good job on that PR, sad that it won't be accepted
I was just going to build a similar function so very handy
@shenntek @morty @johnnie_littleshoes This is a quick improvement both performance and sticking to current resource if in a model item when switching too. I will try and look to make a more efficent core PR outside of the view at some point in the future.
Added as a pr comment.