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

@ -27,4 +27,4 @@ tenant()->create('tenant2.yourapp.com', [
The `create` method returns an array with tenant information (`uuid`, `domain` and whatever else you supplied). The `create` method returns an array with tenant information (`uuid`, `domain` and whatever else you supplied).
> Note: Creating a tenant doesn't run [migrations](https://stancl-tenancy.netlify.com/docs/console-commands/#migrate) automatically. You have to do that yourself. > Note: Creating a tenant doesn't run [migrations]({{ $page->link('console-commands/#migrate') }}) automatically. You have to do that yourself.

View file

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