diff --git a/src/Forum/Content/Discussion.php b/src/Forum/Content/Discussion.php index 0000a6027..0ba508700 100644 --- a/src/Forum/Content/Discussion.php +++ b/src/Forum/Content/Discussion.php @@ -90,6 +90,7 @@ class Discussion implements ContentInterface } $document->title = $apiDocument->data->attributes->title; + $document->canonicalUrl = $url([]); $document->content = $this->view->make('flarum.forum::frontend.content.discussion', compact('apiDocument', 'page', 'getResource', 'posts', 'url')); $document->payload['apiDocument'] = $apiDocument;