I know Joomla! 2.5 is out of date but I need a help. I have a search plugin and I'm using 2 languages. The problem is that every time I'm using the 2nd language, the result link from the search plugin is using article's alias from the 1st language (where it should be using the 2nd language).
I found that this is the script that handle the link:
$articles[$key]->href = ContentHelperRoute::getArticleRoute($article->slug, $article->catslug);
I've tried to change this to:
$articles[$key]->href = ContentHelperRoute::getArticleRoute($article->slug, $article->catslug, $article->language);<br>
But still have no result
Can anybody help please? Thanks!