Skip to content

Commit

Permalink
Fix link to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Mar 6, 2024
1 parent 9f94f50 commit 54dcec0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"Custom CSS": "Custom CSS",
"Custom Footer HTML": "Custom Footer HTML",
"Custom Header HTML": "Custom Header HTML",
"Dashboard": "Dashboard",
"Fixed": "Fixed",
"Guests": "Guests",
"Identified": "Identified",
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>

<div class="flex items-center gap-2.5 sm:gap-5">
<a href="#" class="text-sm font-medium text-zinc-800 transition hover:text-zinc-700 dark:text-white dark:text-zinc-500 dark:hover:text-zinc-300 sm:text-base">Dashboard</a>
<a href="{{ Cachet\Cachet::dashboardPath() }}" class="text-sm font-medium text-zinc-800 transition hover:text-zinc-700 dark:text-white dark:text-zinc-500 dark:hover:text-zinc-300 sm:text-base">{{ __('Dashboard') }}</a>
{{-- Condition Button. --}}
{{-- <a href="{{ route('cachet.dashboard.index') }}" class="text-sm font-medium text-zinc-800 transition hover:text-zinc-700 dark:text-white dark:text-zinc-500 dark:hover:text-zinc-300 sm:text-base">Logout</a>--}}
{{-- Conditional Button. --}}
Expand Down
4 changes: 2 additions & 2 deletions src/Cachet.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ public static function routes(): PendingRouteRegistration
*/
public static function path(): string
{
return config('cachet.path', '/status');
return config('cachet.path', 'status');
}

/**
* Get the URI path prefix used by Cachet's dashboard.
*/
public static function dashboardPath(): string
{
return config('cachet.dashboard_path', static::path().'/dashboard');
return config('cachet.dashboard_path', static::path().'dashboard');
}

/**
Expand Down

0 comments on commit 54dcec0

Please sign in to comment.