Skip to content

Commit

Permalink
Merge pull request #10 from litstack/aw-gerrit-url-blank-support
Browse files Browse the repository at this point in the history
Added url and target _blank support
  • Loading branch information
cbl committed Feb 4, 2021
2 parents 2a21693 + ef3ee46 commit f8cd29a
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 f8cd29a

Please sign in to comment.