From 99250b1868657c249a447399c7ebc69e00d43d1a Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Mon, 26 Oct 2020 15:00:47 +0000 Subject: [PATCH] fix(install): redirect to host_url install route on instanceConfig validation error --- app/Controllers/Install.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); }