Sfoglia il codice sorgente

fix 404 on delete from record detail view

Paweł Bukowski 4 anni fa
parent
commit
e39e953aea
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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))
         );
     }