Home › Forums › Calendar Products › Events Calendar PRO › WPML language switcher has wrong URL
- This topic has 6 replies, 4 voices, and was last updated 7 years, 6 months ago by Justin Perry.
-
AuthorPosts
-
August 31, 2016 at 10:53 am #1158325Justin PerryParticipant
When switching back and forth from a single event view, the URL for the default site language is incorrect and has an added “?lang=en” appended to it.
French Version of the Single Event (Default language)
http://s17949.p507.sites.pressdns.com/event/formation-entraineur-de-clubEnglish Version of the Single Event
http://s17949.p507.sites.pressdns.com/event/formation-entraineur-de-club/?lang=enIt is on the English version where the link in the language switcher (top left of the page) for the French is wrong.
August 31, 2016 at 11:36 pm #1158600Geoff B.MemberGood evening Glenn and welcome to the Events Calendar Support forum!
Thank you for reaching out to us.
We are sorry to hear about about the issues you are experiencing with the language switcher in single events.
I would love to help you with this topic.The first thing I would recommend is to make sure you walk through the following guide: https://theeventscalendar.com/knowledgebase/setting-up-the-events-calendar-with-wpml/
As you will see, translation management and string translation are necessary for complete control 🙂
Let me know how that goes.
Best regards,
Geoff B.September 1, 2016 at 6:03 am #1158700Justin PerryParticipantThis reply is private.
September 1, 2016 at 10:14 pm #1159124Geoff B.MemberGood evening Glenn,
Thank you for your reply.
That lead me to perform some further testing.
I tried to match your configuration as close as possible.While doing so, I was absolutely able to reproduce the issue.
As such, I will open a bug ticket for this.You will be happy to know that we are currently working hand-in-hand with the good folks at WPML.
So this should not take too long to solve. In fact, we should have some pretty nice improvements in our WPML integration to announce this month if everything goes according to plan.In the meantime, I have found a simple workaround that is not perfect, but that will work.
What you need to do is to change the language handling of WPML to directory based (any of the two methods will work – see screenshot):The only downside to this approach is that the faulty ?lang= parameter remains in the URL, but it should buy you some time.
Let me know how that goes.
Best regards,
Geoff B.September 23, 2016 at 7:47 am #1167916Geoff B.MemberGood morning Glenn,
Good news, WPML released a new version this morning (2.5.3) which fixes that specific issue.
I would recommend updating to their latest version and trying it out on your install.
Let me know how that goes.
Best regards,
Geoff B.October 15, 2016 at 9:35 am #1177128Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘WPML language switcher has wrong URL’ is closed to new replies.