akeeba / engage

Akeeba Engage - Comments for Joomla!™ articles made easy
GNU General Public License v3.0
16 stars 10 forks source link

Akeeba Engage on a multilingual site does not integrate the language code in the URL of third languages. #171

Closed Eddy-vh closed 2 years ago

Eddy-vh commented 2 years ago

Hello Nicholas.

Engage on a multilingual site does not return the content URLs according to the third language.

e.g.: French / English site with French as main language. An English language site url would be www.site.com/en/blablabla.html. Engage returns: www.site.com/blablabla.html without the language code. See screenshot: https://dl.dropbox.com/s/zweg73rd4kyc9nx/Engage-multilingue.png

Good to have information

You can skip some or all of this information. However, the more information you provide the faster and better we can help.

Thank you very much.

Eddy

nikosdion commented 2 years ago

This cannot change because of the way Joomla's language management works. In a nutshell, the backend application and the frontend application are separate.

Even though we ask the frontend SEF router to create a link to the public URL of the article there is no way to have it correctly address language codes since they are not supported by the language plugin when it's loaded in the backend of the site.

Therefore the only thing we can do is completely remove this link.

nikosdion commented 2 years ago

It turns out that on Joomla 4 only we can set the language and get the correct URL insofar the correct URL is the URL to the article for its stated language or, in case no language is set, the URL to the default language of the site. This does not seem to be at all possible on Joomla 3.

So, when you upgrade your site to Joomla 4 you will be able to get the correct URL. Until then, nothing much we can do ☹️

Eddy-vh commented 2 years ago

Hi,

Do not remove the link, this one being only in Backend and the administrator of the site having understood the principle, it will continue as currently. The site will be migrated to Joomla 4 soon. ;)

Thanks for your reply and for Engage, which is a cool extension.

Thank you very much.

Eddy

nikosdion commented 2 years ago

I am not going to touch the Joomla 3 version — I have stopped working on it. As I said, on Joomla 4 it is possible to fix that so that's what I am going to do for Engage version 3 for Joomla 4.