Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

This topic contains 5 replies, has 3 voices.

Last updated by Bruno Kos 1 year, 5 months ago.

Assisted by: Bruno Kos.

Author Posts
December 12, 2023 at 6:55 am #15042377

Kevin

Some of the translated pages are product titles, so they are the same name as the English version. Currently the translated version is appending "-2", which I know is normal for WordPress so that there are no duplicate slugs.

What we hope to achieve is this.

English version slug
hidden link

German version slug
hidden link

However, the slugs for the translated version rename to:
hidden link

Is this possible? If so, how do we do it?

Thanks

December 12, 2023 at 8:19 am #15042943

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

while you wait for my colleague to take over, I will provide a reply to try and help.

Yes, this is a restriction from WP, and you can change the page slug in 2nd language manually, by editing it for example using quick action from Pages > All. But please note as this is not expected and recommended, it may cause issues with the server / WP and open the default language page instead of translated or similar.

Please test it and make sure it works fine for you.

Hope this helps.

Regards,
Drazen

December 12, 2023 at 8:38 am #15043085

Kevin

Hi Drazen

Thank you for your reply. Yes, we did try changing manually, however, it gives an error when using the same slug title.

I am hoping for a workaround with a translated site as explained.

Thank you and look forward to the response from your colleague.

Take care
Kevin

December 12, 2023 at 2:05 pm #15046709

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

"it gives an error when using the same slug title."

what kind of error are you getting, can you send a screenshot? Because it should work without errors, so editing the slug in the translated version of the product.

December 12, 2023 at 3:36 pm #15047375

Kevin

Hi Bruno

I get a 404 error when viewing the page.

I have deleted the slug completely and saved allowing for the slug to be auto-generated. The generated slug is what I expect yet still get the 404 error.

When I appended the slug, in this case, with "-2", the page loads.

I am doing this in the translated version.

In my example:

English (original) version
website/iview-for-sap/

German (translated) version

Desired slug
website/de/iview-for-sap/ (get a 404 error)

website/de/iview-for-sap-2/ (page loads fine)
An observation here, if I now visit website/de/iview-for-sap/ it redirects me to website/de/iview-for-sap-2/. Is the redirect being processed by the translation plugin? We have no redirects setup.

Thank you.

December 13, 2023 at 8:20 am #15051559

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Can you tell me if this happens only for "iview-for-sap" or for any other product on the website?

If so, can you test if this works (same slugs) if only WPML is activated and whatever you are using to create the product post type (because I see that you're not using WooCommerce - according to debug info - I assume that you created this with Toolset Types)?

The topic ‘[Closed] using the same slug title in translated version’ is closed to new replies.