diff --git a/app/Http/Middleware/DecideWhatToDoWithUser.php b/app/Http/Middleware/DecideWhatToDoWithUser.php index a531f2cf3..e5531a6e7 100644 --- a/app/Http/Middleware/DecideWhatToDoWithUser.php +++ b/app/Http/Middleware/DecideWhatToDoWithUser.php @@ -21,7 +21,7 @@ public function handle(Request $request, Closure $next): Response } if (!auth()->user() || !isCloud() || isInstanceAdmin()) { if (!isCloud() && showBoarding() && !in_array($request->path(), allowedPathsForBoardingAccounts())) { - return redirect()->route('boarding'); + return redirect()->route('onboarding'); } return $next($request); } @@ -43,7 +43,7 @@ public function handle(Request $request, Closure $next): Response if (Str::startsWith($request->path(), 'invitations')) { return $next($request); } - return redirect()->route('boarding'); + return redirect()->route('onboarding'); } if (auth()->user()->hasVerifiedEmail() && $request->path() === 'verify') { return redirect(RouteServiceProvider::HOME); diff --git a/app/Livewire/Boarding/Index.php b/app/Livewire/Boarding/Index.php index 52440dde7..c77aa54ec 100644 --- a/app/Livewire/Boarding/Index.php +++ b/app/Livewire/Boarding/Index.php @@ -73,7 +73,7 @@ public function explanation() public function restartBoarding() { - return redirect()->route('boarding'); + return redirect()->route('onboarding'); } public function skipBoarding() { diff --git a/bootstrap/helpers/subscriptions.php b/bootstrap/helpers/subscriptions.php index a26bed75b..928bbbcaf 100644 --- a/bootstrap/helpers/subscriptions.php +++ b/bootstrap/helpers/subscriptions.php @@ -135,7 +135,7 @@ function allowedPathsForBoardingAccounts() { return [ ...allowedPathsForUnsubscribedAccounts(), - 'boarding', + 'onboarding', 'livewire/update' ]; } diff --git a/resources/js/components/MagicBar.vue b/resources/js/components/MagicBar.vue index 5f11d8afd..386a267b1 100644 --- a/resources/js/components/MagicBar.vue +++ b/resources/js/components/MagicBar.vue @@ -419,7 +419,7 @@ const magicActions = [{ }, { id: 24, - name: 'Goto: Boarding process', + name: 'Goto: Onboarding process', icon: 'goto', sequence: ['main', 'redirect'] }, @@ -667,7 +667,7 @@ async function redirect() { targetUrl.pathname = `/team` break; case 24: - targetUrl.pathname = `/boarding` + targetUrl.pathname = `/onboarding` break; case 25: targetUrl.pathname = `/security/api-tokens` diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php index 65d2f0736..4ba890c31 100644 --- a/resources/views/components/navbar.blade.php +++ b/resources/views/components/navbar.blade.php @@ -177,14 +177,14 @@ class="{{ request()->is('settings*') ? 'text-warning icon' : 'icon' }}" @endif -