mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 05:32:49 +08:00
Use stored slug for generating server-rendered link to discussion
Fixes #646.
This commit is contained in:
parent
97979b2189
commit
9ecb5f437a
|
@ -8,7 +8,7 @@ $url = app('Flarum\Forum\UrlGenerator');
|
|||
@foreach ($document->data as $discussion)
|
||||
<li>
|
||||
<a href="{{ $url->toRoute('discussion', [
|
||||
'id' => $discussion->id . '-' . $discussion->attributes->title
|
||||
'id' => $discussion->id . '-' . $discussion->attributes->slug
|
||||
]) }}">
|
||||
{{ $discussion->attributes->title }}
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue
Block a user