FilamentF
Filament3y ago
3 replies
Damien

Return to table after saving changes?

Is there, and if how can you return to the pervious page after saving data in a form.
Solution
create page?
protected function getRedirectUrl(): string
{
    return $this->previousUrl ?? $this->getResource()::getUrl('index');
}

https://filamentphp.com/docs/2.x/admin/resources/creating-records#customizing-form-redirects
Was this page helpful?