© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
cj

Default Redirect Url

I see that it is possible to change the default redirect url for edit/create for a given resource by creating the function on each resources edit/create file...

protected function getRedirectUrl(): string
{
    return $this->getResource()::getUrl('index');
}
protected function getRedirectUrl(): string
{
    return $this->getResource()::getUrl('index');
}


but is there a way to set a system default? Instead of the filament default of 'saving the form will not redirect the user to another page', I'd like to set it to return to the list view of a given resource. Do I have to change that on each resources corresponding Edit{Resource} file or is there a simpler way?

https://filamentphp.com/docs/3.x/panels/resources/editing-records#customizing-redirects
Editing records - Panel Builder - Filament
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

url redirect not working
FilamentFFilament / ❓┊help
2y ago
Changing login redirect url
FilamentFFilament / ❓┊help
3y ago
remove filters from default url
FilamentFFilament / ❓┊help
3y ago
Redirect to last URL after login
FilamentFFilament / ❓┊help
16mo ago