Update dashboard route in sidebar with dynamic country parameter

- Updated the `route` function in the sidebar to dynamically resolve the country parameter using the current request's route.
This commit is contained in:
HolgerHatGarKeineNode
2025-11-23 17:47:08 +01:00
parent 454c8e53a5
commit cdf8744883

View File

@@ -17,7 +17,7 @@
<flux:navlist variant="outline"> <flux:navlist variant="outline">
<flux:navlist.group :heading="__('App')" class="grid"> <flux:navlist.group :heading="__('App')" class="grid">
<flux:navlist.item icon="home" :href="route('dashboard', 'de')" <flux:navlist.item icon="home" :href="route('dashboard', request()->route('country', 'de'))"
:current="request()->routeIs('dashboard')" :current="request()->routeIs('dashboard')"
wire:navigate>{{ __('Dashboard') }}</flux:navlist.item> wire:navigate>{{ __('Dashboard') }}</flux:navlist.item>
</flux:navlist.group> </flux:navlist.group>