Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Mar 24, 2015
1 parent 3498b12 commit 7484e6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/system/languagefilter/languagefilter.php
Expand Up @@ -644,7 +644,8 @@ public function onAfterDispatch()
if ($lang->sef == $this->lang_codes[JComponentHelper::getParams('com_languages')->get('site', 'en-GB')]->sef
&& $this->params->get('remove_default_prefix', 0))
{

$link = preg_replace('|/' . $lang->sef . '/|', '/', $link, 1);
}
$doc->addHeadLink($server . $link, 'alternate', 'rel', array('hreflang' => $language));
}
elseif (isset($associations[$language]))
Expand Down

0 comments on commit 7484e6d

Please sign in to comment.