Export action - Login route not found

I am trying the prebuild Export action for the first time. Everything works, except the download of the export. I get the url path /filament/exports/2/download?format=csv for the CSV export, but there I get the error Route [login] not defined..

I guess (and thats just a guess) its because I am using not the "web" but an "admin" Auth-Guard. But I have nowhere else problems and of course I have set ->authGuard("admin") in the Panel service provider.

Any ideas?
Solution
@bernhard I fixed this by overriding the export download route and using a service provider to bind tenant user model to authenticatable class.
Route::get('/filament/exports/{export}/download', DownloadExport::class)
    ->name('filament.exports.download')
    ->middleware([
        'web',
        InitializeTenancyByDomainOrSubdomain::class,
        'or your custom auth middleware'
    ]);

 app()->bind(Authenticatable::class, function () {
            return app(TenantUser::class);
        });
Was this page helpful?