Skip to content

Commit

Permalink
Added url and target _blank support
Browse files Browse the repository at this point in the history
Added support for an url value instead of the route (if no route is given) and the optional target _blank
  • Loading branch information
aw-gerrit committed Feb 4, 2021
1 parent 83f6176 commit ef3ee46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/partials/nav_item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@endphp

<li @if($item->children->count() > 0) class="lit-nav-list--has-children"@endif>
<a class="{{ $linkClass }}" href="{{ $item->route }}">
<a class="{{ $linkClass }}" href="{{ $item->route ?? $item->url }}" target="@if($item->target_blank) _blank @endif">
{{ $item->title }}
</a>

Expand Down

0 comments on commit ef3ee46

Please sign in to comment.