If a topic in the forum, a user writes:
[A r t i c l e = l i n k] 1 [/ a r t i c l e]
The final link is as follows:
http / /: mi_web.com/xxx/xxx/1
This occurs because the function
ContentHelperRoute: getArticleRoute not receive all the necessary data. Look at the code:
Code:
if (KUNENA_JOOMLA_COMPAT == '1.5') {
$url = JRoute::_(ContentHelperRoute::getArticleRoute($article->id, $article->catid, $article->sectionid));
} else {
$url = JRoute::_(ContentHelperRoute::getArticleRoute($article->id, $article->catid));
}
To fix it we can do the following:
Code:
if (KUNENA_JOOMLA_COMPAT == '1.5') {
$url = JRoute::_(ContentHelperRoute::getArticleRoute($article->id, $article->catid, $article->sectionid));
} else {
$link_article = $article->id.':'.$article->alias;
$url = JRoute::_(ContentHelperRoute::getArticleRoute($link_article, $article->catid));
}
This will avoid problems with google - SEO. (K 1.6)