Hello,iveth wrote: Hi
Since the start a year ago using JFBC (both extensions) I have had this problem:
The links that modules / / Facebook / incl. all extensions are showing is ending on: text?lang=en. The corect url is: en/text
What is wrong? how can it be fixed?
This is bad for SEO/Google
Hello,iveth wrote: Hi Mati
Thanks
Please send me the way to send you login so you can see it,
static function getStrippedUrl()
{
$href = JURI::current();
$juri = JURI::getInstance();
// Delete some common, unwanted query params to at least try to get at the canonical URL
$juri->delVar('fb_comment_id');
$juri->delVar('tp');
$juri->delVar('notif_t');
$juri->delVar('ref');
$query = $juri->getQuery();
if ($query)
$href .= '?' . $query;
return $href;
}static function getStrippedUrl()
{
$juri = JURI::getInstance();
// Delete some common, unwanted query params to at least try to get at the canonical URL
$router = JSite::getRouter();
$vars = $router->getVars();
unset($vars['fb_comment_id']);
unset($vars['tp']);
unset($vars['notif_t']);
unset($vars['ref']);
$href = $juri->toString( array('scheme', 'host', 'port')) . JRoute::_('index.php?'.JURI::buildQuery($vars));
return $href;
}Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
