F
Filament4mo ago
Enas

redirect after edit

Hello all, I have OrganizationResource and I want to redirect to view page after editing, I try many solution but it didn't work. you can find my code in attachments. Thanks in advance.
No description
No description
1 Reply
hyperion-mx
hyperion-mx4mo ago
Not sure if you tried this already which I use and works fine for me
protected function getRedirectUrl(): ?string {
return $this->getResource()::getUrl('view', ['record' => $this->getRecord()]);
}
protected function getRedirectUrl(): ?string {
return $this->getResource()::getUrl('view', ['record' => $this->getRecord()]);
}
Want results from more Discord servers?
Add your server