[ticket/15973] Add canonical URL for index

PHPBB3-15973
This commit is contained in:
Marc Alexander 2023-09-27 21:03:01 +02:00
parent 2d3781f285
commit 88dcb5d3d5
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -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) : '')
);