Commit 99250b18 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(install): redirect to host_url install route on instanceConfig validation error

parent 414b23a3
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -156,7 +156,10 @@ class Install extends Controller

        if (!$this->validate($rules)) {
            return redirect()
                ->back()
                ->to(
                    (empty(host_url()) ? config('App')->baseURL : host_url()) .
                        config('App')->installGateway
                )
                ->withInput()
                ->with('errors', $this->validator->getErrors());
        }