Skip to content

Commit

Permalink
Merge pull request #7 from ianlandsman/relative-urls
Browse files Browse the repository at this point in the history
Keep the URLs relative
  • Loading branch information
bezhanSalleh committed Sep 24, 2023
2 parents 5c3267f + 9edb9f8 commit ee8cd3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/panel-switch-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class="w-5 h-5 text-white ms-auto shrink-0"
<x-filament::dropdown.list>
@foreach ($panels as $panel)
<x-filament::dropdown.list.item
:href="$canSwitchPanels && $panel->getId() !== $currentPanel->getId() ? config('app.url') . '/' . $panel->getPath() : null"
:href="$canSwitchPanels && $panel->getId() !== $currentPanel->getId() ? '/' . $panel->getPath() : null"
:badge="str($labels[$panel->getId()] ?? $panel->getId())->substr(0, 2)->upper()"
tag="a"
>
Expand Down Expand Up @@ -66,7 +66,7 @@ class="flex flex-wrap items-center justify-center gap-4 md:gap-6"
>
@foreach ($panels as $panel)
<a
href="{{ $canSwitchPanels && $panel->getId() !== $currentPanel->getId() ? config('app.url') . '/' . $panel->getPath() : '#' }}"
href="{{ $canSwitchPanels && $panel->getId() !== $currentPanel->getId() ? '/' . $panel->getPath() : '#' }}"
class="flex flex-col items-center justify-center flex-1 hover:cursor-pointer group panel-switch-card"
>
<div
Expand Down

0 comments on commit ee8cd3c

Please sign in to comment.