dont redirect horizon requests
This commit is contained in:
parent
ee6927528f
commit
0fb9cce5ef
|
@ -23,6 +23,10 @@ class RedirectIfNotInitializedMiddleware
|
|||
return $next($request);
|
||||
}
|
||||
|
||||
if (1 === preg_match('/\/horizon/', $request->url())) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
if ($this->initialized() && request()->routeIs(['initialize.form'])) {
|
||||
return redirect()->to(RouteServiceProvider::HOME);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue