dont redirect horizon requests

This commit is contained in:
philipp lang 2022-11-16 23:24:07 +01:00
parent ee6927528f
commit 0fb9cce5ef
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,10 @@ class RedirectIfNotInitializedMiddleware
return $next($request); return $next($request);
} }
if (1 === preg_match('/\/horizon/', $request->url())) {
return $next($request);
}
if ($this->initialized() && request()->routeIs(['initialize.form'])) { if ($this->initialized() && request()->routeIs(['initialize.form'])) {
return redirect()->to(RouteServiceProvider::HOME); return redirect()->to(RouteServiceProvider::HOME);
} }