Topic-icon K2 - Social Autoposting in fb creating incorrect URLs

Active Subscriptions:

None
Hello,
I have multilingual website and when user wrote Item(article) in K2 in other language then EN, autopost in fb give incorrect url. Autopost give them english url.
For example:
Correct url: www.domain.com/sk/clanky/item/63-test834
autopost in fb give: www.domain.com/en/clanky/item/63-test834 it means eror404
Do you know where is the problem?
The topic has been locked.
Support Specialist
Can you help describe how the post is being generated some more so we can understand further.

Are you using any extensions to manage multi-lingual content, or just standard Joomla and K2 features?

Is the K2 item being written in the backend or the front-end of the site?

Any details you can provide on your configuration will help us narrow down the cause and possible solution.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
6 years 6 months ago #62768 by LeRan
Hi,
Im not using any extensions for multi-lingual, just standart joomla and K2. K2 items are written from front-end. Users which write article are from jomsocial component. When user write a new item, in website and stream(jomsocial component) everything woking well, but autopost in facebook give eror page e404, because there is wrong url. In url is- en instead of other language (for example es or sk).
example: /sk/clanky/item/63-test834 and from facebook is: /en/clanky/item/63-test834
New item from front-end is setup: language, public,categoty; url: www.domain.com/es/blog-es/nuevo-art
Im using: System - Perfect Open Graph Tags too. I tried to turn off, but it was the same effect.
Sorry for my english.
The topic has been locked.
Active Subscriptions:

None
6 years 6 months ago - 6 years 6 months ago #62782 by LeRan
Do u have some solution? Any answer?
Last edit: 6 years 6 months ago by LeRan.
The topic has been locked.
Support Specialist
I apologize for the delay. We've been investigating this further and believe a simple code fix could fix this issue for you. We tested briefly, but don't have a fully functional multi-lingual site setup (just a dev site that tries to act like one). If you could try the following update and let us know if it works for you, that'd be wonderful.

The edit is in the /plugins/opengraph/k2/k2.php file. Around line 439, you should see:
$link = K2HelperRoute::getItemRoute($item->id . ":" . urlencode($item->alias), $item->catid);
Please update that to:
$link = K2HelperRoute::getItemRoute($item->id . ":" . urlencode($item->alias), $item->catid, $item->language);

Let us know how that goes. If it fixes things for you, we'll make sure to include it in the next release of JFBConnect.

Thanks!
Alex
The topic has been locked.
Active Subscriptions:

None
6 years 6 months ago #62829 by LeRan
Hi,
thank you for your recommend.
I tried to edit that row but hovever is not wokring. Is the same effect. Url adress is not changed. there is always en- www.domain.com/en/clanky/item/63-test834. But just from facebook. From profile or time line in my site is working good.
The topic has been locked.
Support Specialist
6 years 6 months ago #62863 by mel
Just wanted to note that we are looking into trying to recreate this on our test site. However it would be very helpful if we could have backend access to see how you've configured your K2 / language settings. We're just having some trouble setting up a multi-lingual site and getting this problem to occur. If you could send a private message to Alex with credentials, that would be appreciated - click on the envelope icon under his avatar to send a PM.

-Melissa
The topic has been locked.
Active Subscriptions:

None
6 years 5 months ago #63009 by LeRan
Thank you, I sent to Alex message.
Best Regards
The topic has been locked.
Active Subscriptions:

None
6 years 5 months ago #63042 by LeRan
Hi, do you have some new information for me?
Thnx
The topic has been locked.
Active Subscriptions:

None
6 years 5 months ago #63054 by LeRan
Hi Melissa, I create access for Alex and I sent to him. I received no answer. May I ask you to find some new information?
The topic has been locked.