diff --git a/framework/core/src/Forum/Content/Discussion.php b/framework/core/src/Forum/Content/Discussion.php index 0ba508700..15e8d9bd4 100644 --- a/framework/core/src/Forum/Content/Discussion.php +++ b/framework/core/src/Forum/Content/Discussion.php @@ -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 : ''); };