This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 1 year ago.

Assigned support staff: Bobby.

Author Posts
September 28, 2018 at 7:10 pm #2774728

danielL-3

Tell us what you are trying to do?
I'm working on a site where we have a page with the slug in English as "/volunteer" and we'd like the Spanish version to be "/voluntario" but it redirects to /volunteer unless the URL ends in "/voluntario/?lang=es"

Is there a way to have this slug go to the right language without having the parameter at the end?

October 1, 2018 at 4:08 am #2777104

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

Unfortunately this is not possible as WPML and WordPress require the parameter (?lang=es) or directory if you have set to directories (/es/voluntario/) to redirect the page to the correct language.

removing the parameter will result in the URL to be redirected as you have been experiencing.

the other option as mentioned above would be to switch the format to using "directories" from within WPML->languages

this would just add a language code in your URL instead.

ex. hidden link