fix(install): redirect to host_url install route on instanceConfig validation error
This commit is contained in:
parent
414b23a3b7
commit
99250b1868
|
@ -156,7 +156,10 @@ class Install extends Controller
|
||||||
|
|
||||||
if (!$this->validate($rules)) {
|
if (!$this->validate($rules)) {
|
||||||
return redirect()
|
return redirect()
|
||||||
->back()
|
->to(
|
||||||
|
(empty(host_url()) ? config('App')->baseURL : host_url()) .
|
||||||
|
config('App')->installGateway
|
||||||
|
)
|
||||||
->withInput()
|
->withInput()
|
||||||
->with('errors', $this->validator->getErrors());
|
->with('errors', $this->validator->getErrors());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue