Fix links

This commit is contained in:
Samuel Štancl 2019-09-21 16:53:46 +02:00
parent 2530f17bc2
commit 4175a60f85
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<li class="list-reset pl-4">
@if ($url = is_string($item) ? $item : $item->url)
{{-- Menu item with URL--}}
<a href="{{ $page->link($url) }}"
<a href="{{ $page->url($url) ? $url : $page->link($url) }}"
class="{{ 'lvl' . $level }} {{ $page->isActiveParent($item) ? 'lvl' . $level . '-active' : '' }} {{ $page->isActive($url) ? 'active font-semibold text-blue' : '' }} nav-menu__item hover:text-blue"
>
{{ $label }}