1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Fixes #4351 Gsitemap canonical link.

This commit is contained in:
Cameron 2021-01-17 10:30:29 -08:00
parent 5c9e04373e
commit b286d66e88
2 changed files with 24 additions and 4 deletions

View File

@ -0,0 +1,23 @@
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2014 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Related configuration module - News
*
*
*/
if (!defined('e107_INIT')) { exit; }
if(deftrue('USER_AREA') && (defset('e_PAGE') === 'gsitemap.php'))
{
$canonicalurl = e107::url('gsitemap', 'index', null, array('mode' => 'full'));
e107::link(array('rel'=>"canonical", "href" =>$canonicalurl));
}

View File

@ -16,10 +16,7 @@
*/
if (!defined('e107_INIT')) { exit; }
if(!e107::isInstalled('gsitemap'))
{
return '';
}