Multi tenancy Dashboard redirect loop

I'm trying to work with multi tenancy in my application.
The tenant model is called Account, and I set it on my PanelProvider like so:
return $panel
...
->tenant(Account::class, slugAttribute: 'slug');

(There is no ->path(...), the whole application is filament.)
Works perfectly with the slugs like example.test/tenant.
Subdomains are cool, so I wanted to make tenant.example.test instead, so I tryed:
return $panel
...
->tenant(Account::class, slugAttribute: 'slug')
->tenantDomain('{tenant:slug}.example.test');

It didn't work, I got "The page isn’t redirecting properly" error, I tried to figure out why.
On default I run local projects with laragon (working on Windows 11 btw), but I made it work previously for another project, but I couldn't make it work this time.
After some time I gave up with Laragon and tried to run it with php artisan serve --host="example.test".
Same problem, but I found out that only the Dashboard throws this error, so I opened up the vendor folder and tried to catch the error.
I ended up with the RedirectToTenantController, and this controller redirects every time to the same url.
$url = $panel->getUrl($tenant);
dd($url, url()->current()); // This is both: 'http://tenant.example.test'
...
return redirect($url);

I only had a custom widget on the dashboard, I commented it, also commented ->discoverWidgets().
I even tried to make a brand new project with only these details, but same happened.
What am I missing, or what could be the problem, and how can I solve it?
Solution
Fixed in v3.2.56
Fixes issue with tenancy route registration order.
GitHub
What's Changed

adding hook classes for sub navigation by @atmonshi in #11949
Add missing de translations for relation edit modal by @philippbuerger in #11954
Update 03-creating-records.md by @...
Was this page helpful?