Browse Source

Merge pull request #714 from shacky/2.0

fix 404 on delete from "record detail view"
Jiang Qinghua 4 years ago
parent
commit
b86b53af04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Form.php

+ 1 - 1
src/Form.php

@@ -571,7 +571,7 @@ class Form implements Renderable
                 ->alert()
                 ->status($status)
                 ->message($message)
-                ->refreshIf($status)
+                ->redirectIf($status, $this->resource(-1))
         );
     }