Skip to content

Commit

Permalink
absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Feb 2, 2023
1 parent 65c3311 commit 90aafda
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ public function parseArticles($objTemplate, $arrArticle, $objModule)
$strCurrentUri = Environment::get('uri');

// get the canonical uri
$strCanonicalUri = News::generateNewsUrl(NewsModel::findById($arrArticle['id']));
$strCanonicalUri = (strpos($strCanonicalUri, 'http') !== 0 ? Environment::get('base') : '') . $strCanonicalUri;
$strCanonicalUri = News::generateNewsUrl(NewsModel::findById($arrArticle['id']), false, true);

// check if Uris are the same
if ($strCurrentUri != $strCanonicalUri)
Expand Down

0 comments on commit 90aafda

Please sign in to comment.