1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Issue #4352 Added canonical for home page and frontpage setting.

This commit is contained in:
Cameron
2021-01-19 13:31:20 -08:00
parent f091709847
commit e57b1a9b61
7 changed files with 166 additions and 77 deletions

View File

@@ -1712,6 +1712,20 @@ if(!isset($_E107['no_online']))
}
$dbg->logTime('(After Go online)');
$dbg->logTime('Frontpage detection');
$fpUrl = str_replace(SITEURL, '', rtrim(e_REQUEST_URL, '?/'));
$fpPref = e107::getFrontpage();
if($fpUrl === $fpPref)
{
e107::canonical('_SITEURL_');
}
unset($fpUrl, $fpPref);
/**
* Set Cookie