Tenant Settings page under provider

I'm unaware if this is a coding issue on my end or a bug.
I've created a custom page called Settings which have the name filament.app.pages.settings.
When I dump this in a test route outside Filament I get this "http://localhost/app/dwa/settings" // routes/web.php:29
When I try this:
->tenantMenuItems([
                MenuItem::make()
                    ->label('Settings')
                    ->url(route('filament.app.pages.settings'))
                    ->icon('heroicon-m-cog-8-tooth'),
                // ...
            ])

under my provider it says the route name does not exist?
Solution
@anitexs You have to do a closure inside it for it to work. The docs are wrong on this so I guess open an issue or I can.

But do this instead.

For a page inside a panel that DOESN'T have tenancy you can do one of these:
MenuItem::make()
  ->label('Settings')
  ->url(fn() => url(Settings::getUrl()))
  ->icon('heroicon-m-cog-8-tooth'),

MenuItem::make()
  ->label('Settings')
  ->url(fn() => route('filament.app.pages.settings'))
  ->icon('heroicon-m-cog-8-tooth'),


For a page inside a panel that DOES have tenancy you do this:
MenuItem::make()
  ->label('Settings')
  ->url(fn() => url(Settings::getUrl()))
  ->icon('heroicon-m-cog-8-tooth'),
Was this page helpful?