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:
14
class2.php
14
class2.php
@@ -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
|
||||
|
Reference in New Issue
Block a user