Skip to content

Commit c542a55

Browse files
authored
Replace url with named route in href (#57)
* Replace url with named route in href * Replace url with named route in href
1 parent e700cd6 commit c542a55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/views/components/layouts/app/header.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
7373
<flux:menu.separator />
7474

7575
<flux:menu.radio.group>
76-
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>{{ __('Settings') }}</flux:menu.item>
76+
<flux:menu.item :href="route('settings.profile')" icon="cog" wire:navigate>{{ __('Settings') }}</flux:menu.item>
7777
</flux:menu.radio.group>
7878

7979
<flux:menu.separator />

resources/views/components/layouts/app/sidebar.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
6060
<flux:menu.separator />
6161

6262
<flux:menu.radio.group>
63-
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>{{ __('Settings') }}</flux:menu.item>
63+
<flux:menu.item :href="route('settings.profile')" icon="cog" wire:navigate>{{ __('Settings') }}</flux:menu.item>
6464
</flux:menu.radio.group>
6565

6666
<flux:menu.separator />
@@ -110,7 +110,7 @@ class="flex h-full w-full items-center justify-center rounded-lg bg-neutral-200
110110
<flux:menu.separator />
111111

112112
<flux:menu.radio.group>
113-
<flux:menu.item href="/settings/profile" icon="cog" wire:navigate>{{ __('Settings') }}</flux:menu.item>
113+
<flux:menu.item :href="route('settings.profile')" icon="cog" wire:navigate>{{ __('Settings') }}</flux:menu.item>
114114
</flux:menu.radio.group>
115115

116116
<flux:menu.separator />

0 commit comments

Comments
 (0)