mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-21 09:01:29 +02:00
[ticket/15973] Add canonical URL for index
PHPBB3-15973
This commit is contained in:
@@ -227,6 +227,7 @@ $template->assign_vars(array(
|
|||||||
'S_DISPLAY_BIRTHDAY_LIST' => $show_birthdays,
|
'S_DISPLAY_BIRTHDAY_LIST' => $show_birthdays,
|
||||||
'S_INDEX' => true,
|
'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_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) : '')
|
'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) : '')
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user