Update nojs view to use slug driver. Fixes #3013 (#142)

This commit is contained in:
Clark Winkelmann 2021-08-21 17:30:37 +02:00 committed by GitHub
parent b791263702
commit 7a0923dce2

View File

@ -8,7 +8,7 @@
@foreach ($apiDocument->data as $discussion) @foreach ($apiDocument->data as $discussion)
<li> <li>
<a href="{{ $url->to('forum')->route('discussion', [ <a href="{{ $url->to('forum')->route('discussion', [
'id' => $discussion->id . (trim($discussion->attributes->slug) ? '-' . $discussion->attributes->slug : '') 'id' => $discussion->attributes->slug
]) }}"> ]) }}">
{{ $discussion->attributes->title }} {{ $discussion->attributes->title }}
</a> </a>