Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question error [article=link]

More
14 years 8 months ago - 14 years 8 months ago #104825 by karmany
error [article=link] was created by karmany
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)

[img
- "Tu sitio para aprender, enseñar y compartir"
Last edit: 14 years 8 months ago by karmany.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #104830 by xillibit
Replied by xillibit on topic Re: error [article=link]
Hello,

I presume that this issue only happens only J!1.6+ ?

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago - 14 years 8 months ago #104835 by karmany
Replied by karmany on topic Re: error [article=link]

xillibit wrote: I presume that this issue only happens only J!1.6+ ?


Yes. (I use Joomla! 1.7)

This code is also used in the module of the latest articles. You can see it. (Joomla! 1.7).
I hope you can use in Kunena 1.7. This solves the problems of Google - SEO: Duplicate metadescriptions.

[img
- "Tu sitio para aprender, enseñar y compartir"
Last edit: 14 years 8 months ago by karmany.

Please Log in or Create an account to join the conversation.

Time to create page: 0.238 seconds