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:
under my provider it says the route name does not exist?Solution:Jump to 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:...
34 Replies
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1139679142787432468/image.png)
Run php artisan route:list to see what the route is named
That's where I got the name from 🙂
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1139687559736344716/image.png)
What if you did ->url(SettingsPage::getUrl()). Might not be the correct text but it’s typically better to call the url off the class than to use the route helper in a filament context.
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1139692263665061950/image.png)
Still the same
And I am reffering to the correct settings page
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1139692515516231881/image.png)
Do you mind sharing the Settings class you are using.
Maybe even a dumb question but is this you’re only panel and if so does it have ->default() on it?
Might even need getUrl(panel: ‘panel-id’)
Default should take care of that though.
I have the admin panel which is not a tenant based. Then I have the App Panel which is Tenant based. I have two tenants in my test enviroment right now.
Two panels you mean?
Yes.
At least one of them needs default() otherwise it will break things.
I've placed the default on the App now
Still same issue
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1139696127642456134/image.png)