aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-05-23 03:06:42 +0200
committerAndreas Fischer <bantu@phpbb.com>2014-05-23 03:06:42 +0200
commit3d19776037ce586db55361a18e05e6a9df2593ec (patch)
treed64fb3be49a98b2c9ba201bb3f8edd765b7232fd /phpBB/viewtopic.php
parent7a464a83b579d90af5ae8b4ef7e2750ba6b9954b (diff)
parent0ad2e22ec01deb40fdd174890ae92d896649a424 (diff)
downloadforums-3d19776037ce586db55361a18e05e6a9df2593ec.tar
forums-3d19776037ce586db55361a18e05e6a9df2593ec.tar.gz
forums-3d19776037ce586db55361a18e05e6a9df2593ec.tar.bz2
forums-3d19776037ce586db55361a18e05e6a9df2593ec.tar.xz
forums-3d19776037ce586db55361a18e05e6a9df2593ec.zip
Merge pull request #2468 from nickvergessen/ticket/12555
[Ticket/12555] Make use of canonical urls to avoid duplicate content * nickvergessen/ticket/12555: [ticket/12555] Add canonical URL for viewtopic [ticket/12555] Add canonical URL for viewforum [ticket/12555] Add canonical URl for memberlist mode=viewprofile [ticket/12555] Allow to set canonical URLs to avoid duplicate content
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 95bee9789f..4553917d80 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -642,6 +642,7 @@ $template->assign_vars(array(
'U_TOPIC' => "{$server_path}viewtopic.$phpEx?f=$forum_id&amp;t=$topic_id",
'U_FORUM' => $server_path,
'U_VIEW_TOPIC' => $viewtopic_url,
+ 'U_CANONICAL' => generate_board_url() . '/' . append_sid("viewtopic.$phpEx", "t=$topic_id" . ((strlen($u_sort_param)) ? "&amp;$u_sort_param" : '') . (($start) ? "&amp;start=$start" : ''), true, ''),
'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_id),
'U_VIEW_OLDER_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;view=previous"),
'U_VIEW_NEWER_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;view=next"),