mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[ticket/12555] Add canonical URL for viewtopic
Avoids duplicate content of: * viewtopic.php?t=topic_id * viewtopic.php?f=forum_id&t=topic_id * viewtopic.php?f=forum_id&t=topic_id&hilit=highlight_string * viewtopic.php?f=forum_id&t=topic_id&view=unread * viewtopic.php?f=forum_id&p=post_id * viewtopic.php?f=forum_id&t=topic_id&start=0 PHPBB3-12555
This commit is contained in:
parent
08b5d052c6
commit
0ad2e22ec0
1 changed files with 1 additions and 0 deletions
|
@ -642,6 +642,7 @@ $template->assign_vars(array(
|
|||
'U_TOPIC' => "{$server_path}viewtopic.$phpEx?f=$forum_id&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)) ? "&$u_sort_param" : '') . (($start) ? "&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&t=$topic_id&view=previous"),
|
||||
'U_VIEW_NEWER_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&view=next"),
|
||||
|
|
Loading…
Add table
Reference in a new issue