Skip to content

Commit

Permalink
Optimize Canonical URL
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenMoolenschot committed May 28, 2023
1 parent 1ed5696 commit ef48a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions joomill.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public function onContentPrepare() {
}
}

// Set CANONICAL URL
$link = \Joomla\CMS\Uri\Uri::getInstance()->toString();
// SET CANONICAL URL
$link = Uri::getInstance()->toString();
$link = rtrim($link, '/');
$link = strtok($link, '?');
$doc->addHeadLink($link, 'canonical');
Expand Down

0 comments on commit ef48a7f

Please sign in to comment.