Skip to content

Commit 848e690

Browse files
fix: redirect after submit action to url
redirecting to route gives errors when the route requires parameters
1 parent 6339885 commit 848e690

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Livewire/PageHints.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function submit(): void
8080
->title(__('filament-page-hints::translations.notification.upsert'))
8181
->success()
8282
->send();
83-
$this->redirectRoute($data['route']);
83+
$this->redirect($data['url']);
8484
}
8585

8686
public function editPageHint(PageHint $hint): void
@@ -101,7 +101,7 @@ public function deletePageHint(PageHint $hint): void
101101
->title(__('filament-page-hints::translations.notification.delete'))
102102
->success()
103103
->send();
104-
$this->redirectRoute($hint->route);
104+
$this->redirect($hint->url);
105105
}
106106

107107
protected function getFormModel(): PageHint

0 commit comments

Comments
 (0)