diff --git a/app/Controllers/Install.php b/app/Controllers/Install.php index 053e3fae..4d71879e 100644 --- a/app/Controllers/Install.php +++ b/app/Controllers/Install.php @@ -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()); }