From 551ca23267727f29b29907108518f339701b2a7e Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Mon, 16 Jul 2018 01:43:06 +0200 Subject: [PATCH] Discussion HTML: Add a canonical URL Refs #358 and #1140. --- src/Forum/Content/Discussion.php | 1 + 1 file changed, 1 insertion(+) 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;