© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
mxc

Custom route with path parameters for custom page

Hi there,

I have create a custom page with

php artisan make:filament-page MyPage
php artisan make:filament-page MyPage


I would like to change the path and add a path parameter but can't find how to do it. I read I should override the method "public static function route($record)" in my page class but this has had no effect. How do I modify the route for a generated custom page?

Thanks
Solution
Ok the error is due to as I had it registered for navigation and it requires an id in the url. I removed it from the navigation component with "protected static bool $shouldRegisterNavigation = false;" Now it works.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom Page with URL parameters
FilamentFFilament / ❓┊help
3y ago
Custom resource route with extra parameters
FilamentFFilament / ❓┊help
16mo ago
Custom page route
FilamentFFilament / ❓┊help
2y ago
Optional path param for custom page
FilamentFFilament / ❓┊help
16mo ago