diff --git a/app/Http/Middleware/RedirectIfNotInitializedMiddleware.php b/app/Http/Middleware/RedirectIfNotInitializedMiddleware.php index b22c4e97..d0e06028 100644 --- a/app/Http/Middleware/RedirectIfNotInitializedMiddleware.php +++ b/app/Http/Middleware/RedirectIfNotInitializedMiddleware.php @@ -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); }