Redirect unauthorised tenant user to their default tenant

The filament middleware IdentifyTenant::class returns a standard 404 if the user tries to access the subdomain of a tenant they are not allowed to access.

Does anyone have a way to intercept/overwrite that, so I can redirect to a defined route?
Was this page helpful?