Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Mar 24, 2016
1 parent 20c9d0e commit 9312a21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/system/sef/sef.php
Expand Up @@ -51,15 +51,14 @@ public function onAfterDispatch()
}
}

$domain = $this->params->get('domain', '');

// If a canonical html tag already exists, don't do anything.
if ($exists)
{
return;
}

// Add the canonical link if it's different from the current URI.
$domain = $this->params->get('domain', '');
$uri = JUri::getInstance();
$domain = (empty($domain)) ? $uri->toString(array('scheme', 'host', 'port')) : $domain;
$canonical = $domain . JRoute::_('index.php?' . http_build_query($this->app->getRouter()->getVars()), false);
Expand Down

0 comments on commit 9312a21

Please sign in to comment.