F
Filament9mo ago
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
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server