Use new discussion URL format

This commit is contained in:
Toby Zerner 2015-08-25 19:52:24 +09:30
parent 8525bcf419
commit 3490e8887b

View File

@ -8,8 +8,7 @@ $url = app('Flarum\Http\UrlGeneratorInterface');
@foreach ($document->data as $discussion)
<li>
<a href="{{ $url->toRoute('flarum.forum.discussion', [
'id' => $discussion->id,
'slug' => $discussion->attributes->title
'id' => $discussion->id . '-' . $discussion->attributes->title
]) }}">
{{ $discussion->attributes->title }}
</a>