FLEXIContent Language Switcher Issue

More
4 months 1 week ago - 4 months 1 week ago #84771 by iamrobert
Hi,

I'm having a problem with switching languages on the site.

My Chinese homepage version has the wrong URLs: 
Code:
<li><a href="/en/"> 中文 </a></li>

It should be:
Code:
<li><a href="/tw/"> 中文 </a></li>
The URL:  ws.taichungdesigner.com/tw/

Demo: ws.taichungdesigner.com/

The TW version works:
ws.taichungdesigner.com/tw/

Subsequent Pages reveal similar issues

Multilingual Setup OK:




Further digging reveals:

The two languages in the switcher - without SEF have these configs:


array:2 [▼
  0 => {#872 ▼
    +"lang_id": 2
    +"asset_id": 565
    +"lang_code": "zh-TW"
    +"title": "Chinese Traditional (Taiwan)"
    +"title_native": "中文"
    +"sef": "tw"
    +"image": "zh_tw"
    +"description": ""
    +"metakey": null
    +"metadesc": ""
    +"sitename": "偉翔生技開發"
    +"published": 1
    +"access": 1
    +"ordering": 1
    +"link": "index.php?option=com_flexicontent&view=item&cid=35:home&id=186:home-zh&lang=tw&Itemid=1231&lang=zh"
    +"active": false
    +"rtl": "0"
  }
  1 => {#701 ▼
    +"lang_id": 1
    +"asset_id": 140
    +"lang_code": "en-GB"
    +"title": "English (en-GB)"
    +"title_native": "En"
    +"sef": "en"
    +"image": "en_gb"
    +"description": ""
    +"metakey": ""
    +"metadesc": ""
    +"sitename": "Well Shine Bio"
    +"published": 1
    +"access": 1
    +"ordering": 2
    +"link": "index.php?option=com_flexicontent&view=item&cid=25:home&id=1:home&lang=en&Itemid=101&lang=en"
    +"active": true
    +"rtl": false
  }
]

According to the troubleshooting DEV:

"The SEF URL parser in FlexiContent at fault here. 

The one for Chinese also has TWO lang= vars in the url "index.php?option=com_flexicontent&view=item&cid=35:home&id=186:home-zh&lang=tw&Itemid=1231&lang=zh" and Im betting that is one of the issues here. "

Is there a reason for this? How can I resolve it?


The 2 languages seem to be related to the Site Content Languages:

If I set Chinese to zh it seems to resolve better:



Is there away to change it to /tw/ without breaking the setup? PHPMyAdmin?



 
Last edit: 4 months 1 week ago by iamrobert.

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

More
4 months 1 week ago #84773 by micker
hello sorry for delay georgios will check it

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
4 months 1 week ago #84774 by micker
hello can you test master branch with this fix
github.com/FLEXIcontent/flexicontent-cck...c673fe6c2bc5919e2073

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
4 months 6 days ago #84775 by iamrobert
Thanks Micker & Georgios

This fix seems to fix the problem:
ws2.taichungdesigner.com/


For anyone else with this issue - copy this file: and replace here:
  • components/com_flexicontent/helpers/association.php

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

More
4 months 6 days ago #84777 by micker
thanks for return we will add this un next release

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
4 months 5 days ago #84786 by iamrobert
Hey Micker,

Sorry - its not working.

I see that you reverted it back - hopefully it can be fixed.

But client is ok with /zh/

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.301 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline