© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•9mo ago•
6 replies
o.m

getPages not working on Custom Page

I am trying to redirect a View Custom page to another Custom Page.

So I added this on Notificaiton custom Page

    public static function getPages() : array
    {
        return [
            'edit'  => EditNotification::route('/{slug}/edit'),
        ];
    }
    public static function getPages() : array
    {
        return [
            'edit'  => EditNotification::route('/{slug}/edit'),
        ];
    }

The EditNotification is another custom page where I wanted to show specific datas
However I do not see the route on phpartisan list causing me to have
Route [filament.pages.notifications.edit] not defined.
Route [filament.pages.notifications.edit] not defined.
image.png
Solution
Was able to solve it by using this on custom page
    protected static ?string $slug = 'notification/{slug}/edit';
    protected static ?string $slug = 'notification/{slug}/edit';
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

Repeater not working on custom page
FilamentFFilament / ❓┊help
2y ago
Validation messages not working on custom page?
FilamentFFilament / ❓┊help
2y ago
getModelLabel in custom resource page not working
FilamentFFilament / ❓┊help
4w ago
Form in custom page validation not working
FilamentFFilament / ❓┊help
11mo ago