diff --git a/viewforum.php b/viewforum.php index 7a1cdb4a3..17b962e9e 100644 --- a/viewforum.php +++ b/viewforum.php @@ -12,6 +12,7 @@ define('BB_SCRIPT', 'forum'); require __DIR__ . '/common.php'; $page_cfg['include_bbcode_js'] = true; +$page_cfg['canonical_link'] = true; $show_last_topic = true; $last_topic_max_len = 40; diff --git a/viewtopic.php b/viewtopic.php index f952e0f15..e71470904 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -22,6 +22,7 @@ $page_cfg['load_tpl_vars'] = [ 'post_icons', 'topic_icons' ]; +$page_cfg['canonical_link'] = true; $newest = $next_topic_id = 0; $start = isset($_GET['start']) ? abs((int)$_GET['start']) : 0;