mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Use new discussion URL format
This commit is contained in:
parent
8525bcf419
commit
3490e8887b
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user