mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
parent
fffab39c4b
commit
d95a1481be
|
@ -76,7 +76,8 @@ class Discussion implements ContentInterface
|
|||
unset($newQueryParams['id']);
|
||||
$queryString = http_build_query($newQueryParams);
|
||||
|
||||
$idWithSlug = $apiDocument->data->id . (trim($apiDocument->data->attributes->slug) ? '-' . $apiDocument->data->attributes->slug : '');
|
||||
$idWithSlug = $apiDocument->data->id.(trim($apiDocument->data->attributes->slug) ? '-'.$apiDocument->data->attributes->slug : '');
|
||||
|
||||
return $this->url->to('forum')->route('discussion', ['id' => $idWithSlug]).
|
||||
($queryString ? '?'.$queryString : '');
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user