From 88dcb5d3d54c456885e5dec9a462557c7f9ca45a Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Wed, 27 Sep 2023 21:03:01 +0200 Subject: [PATCH] [ticket/15973] Add canonical URL for index PHPBB3-15973 --- phpBB/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/index.php b/phpBB/index.php index c41de04b4d..876f149155 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -227,6 +227,7 @@ $template->assign_vars(array( 'S_DISPLAY_BIRTHDAY_LIST' => $show_birthdays, 'S_INDEX' => true, + 'U_CANONICAL' => generate_board_url() . '/', 'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums&mark_time=' . time()) : '', 'U_MCP' => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '') );