Skip to Content Skip to Menu

Switching from En to El missing username in URL

  • plouca
  • plouca
  • OFFLINE
  • Posts: 8
  • Thanks: 1
  • Karma: 0
2 years 9 months ago - 2 years 9 months ago #328485 by plouca
RE: www.joomlapolis.com/forum/146-general/238106-multilingual-userprofile-switching-problem

Hello,

I am experiencing the same issue. When not logged in and trying to make a language switch in profile page, the profile's username is not contained as part of the URL, i.e. username is not suffixed to the URL. I even tried to have 2 CB Profile items, a CB Profile En and another CB Profile El, associated with each other, but still unsuccessful! When logged in, all work fine, but it is important to notice that the URL of each language does not contain the username at the end!!!

e.g.

Switching from En to El scenario

En link appears correctly:
/directory/index.php/en/cb-profile-en/username

El link displayed wrong (username does not exist at the end of the URL):
/directory/index.php/el/cb-profile-el


Thank you,

Petros
Last edit: 2 years 9 months ago by plouca. Reason: Update

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 9 months ago #328498 by krileon
We don't have any control over that. The language switcher behavior is entirely Joomla. The language switcher module has no functionality to customize what URL it switches to and is operating entirely off the menu item URL.

The only way to fix this from our end is to generate language associations for every single profile URL or create a menu item for every single profile URL, which isn't practical. Ideally Joomla should be taking current URL, swapping out &lang, then redirecting but it doesn't.

It's usually best to only make language switching available on your home page or on pages that you've very specific menu items for.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum