Skip to content

Commit 54dcec0

Browse files
committed
Fix link to dashboard
1 parent 9f94f50 commit 54dcec0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

resources/lang/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"Custom CSS": "Custom CSS",
1414
"Custom Footer HTML": "Custom Footer HTML",
1515
"Custom Header HTML": "Custom Header HTML",
16+
"Dashboard": "Dashboard",
1617
"Fixed": "Fixed",
1718
"Guests": "Guests",
1819
"Identified": "Identified",

resources/views/components/header.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</div>
1212

1313
<div class="flex items-center gap-2.5 sm:gap-5">
14-
<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>
14+
<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>
1515
{{-- Condition Button. --}}
1616
{{-- <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>--}}
1717
{{-- Conditional Button. --}}

src/Cachet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ public static function routes(): PendingRouteRegistration
5858
*/
5959
public static function path(): string
6060
{
61-
return config('cachet.path', '/status');
61+
return config('cachet.path', 'status');
6262
}
6363

6464
/**
6565
* Get the URI path prefix used by Cachet's dashboard.
6666
*/
6767
public static function dashboardPath(): string
6868
{
69-
return config('cachet.dashboard_path', static::path().'/dashboard');
69+
return config('cachet.dashboard_path', static::path().'dashboard');
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)