aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.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/memberlist.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/memberlist.php')
-rw-r--r--phpBB/memberlist.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 137cb0e7fa..2001c816eb 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -677,6 +677,8 @@ switch ($mode)
'U_ADD_FOE' => (!$friend && !$foe && $foes_enabled) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&amp;mode=foes&amp;add=' . urlencode(htmlspecialchars_decode($member['username']))) : '',
'U_REMOVE_FRIEND' => ($friend && $friends_enabled) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&amp;remove=1&amp;usernames[]=' . $user_id) : '',
'U_REMOVE_FOE' => ($foe && $foes_enabled) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&amp;remove=1&amp;mode=foes&amp;usernames[]=' . $user_id) : '',
+
+ 'U_CANONICAL' => generate_board_url() . '/' . append_sid("memberlist.$phpEx", 'mode=viewprofile&amp;u=' . $user_id, true, ''),
));
if (!empty($profile_fields['row']))