© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Albert Lens

getRedirectUrl() can be set globally?

In all my resources, absolutely all, I want the redirec to the index after creating and after editing records. I am using this code in every single CreateNameOfResource.php and EditNameOfResource.php:
protected function getRedirectUrl(): string
    {
        return $this->getResource()::getUrl('index');
    }
protected function getRedirectUrl(): string
    {
        return $this->getResource()::getUrl('index');
    }

Is there a way to put that globally?

Thanks.
image.png
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

getRedirectUrl
FilamentFFilament / ❓┊help
3y ago
Set displayed timezone globally
FilamentFFilament / ❓┊help
2y ago
How to globally set $defaultDateTimeDisplayFormat ?
FilamentFFilament / ❓┊help
3y ago
Globally set single column for forms/infolists
FilamentFFilament / ❓┊help
6mo ago