F
Filament3mo ago
Fik

overlook

i have an issue that i want to set every single time during create and edit . it will redirect to view page . But i received an error says the record is missing in this code. how and what is the right way to insert record together in this code ? protected function getRedirectUrl(): string { return $this->getResource()::getUrl('view'); }
1 Reply
LeandroFerreira
LeandroFerreira3mo ago
By default, after saving the form, the user will be redirected to the Edit page of the resource, or the View page if it is present. You shouldn't add this if you have a view page