Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with the Redirection plugin not creating redirects for all languages after changing a product category, and it only works for the base language (Spanish in this case), you're not alone. The client expected that when the product category was changed, the Redirection plugin would automatically create redirects for the translated versions of the product (French and English), but it only did so for the main language.
Solution:
We have tested this behavior and found that while the Redirection plugin does not record the redirection for translated products, WordPress automatically adjusts the URLs and handles the redirection properly after updating the product category and its translations. Here are the steps we followed:
1. Go to Settings > Permalinks and add the category to the product slug.
2. Create a product, assign a category, and translate it.
3. Assign a different category to the product, save, and update the translation.
Please note that WPML does not currently offer an option to monitor redirection URLs as the Redirection plugin does. If this solution does not seem relevant to your situation, please open a new support ticket at WPML support forum.

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.

This topic contains 9 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 5 months ago.

Assisted by: Long Nguyen.

Author Posts
January 15, 2024 at 11:12 am #15184522

oriolS-4

I am trying to:

When I change a Product Category in any product, permanent link also changes. Redirection plugin, detects this change and creates a new redirection from old link to new link. But it should do this new redirection for each language set in WPML. But it only creates a new redirection for base language (Spanish in my case)
For example from origina product in NOVEDADES Product category:
/muebles-antiguos/novedades-amaru/silla-roja-thonet-antigua-c-1900-1/
Redirection creates new redirection to:
/muebles-antiguos/sillas-antiguas-sillones-antiguos/silla-roja-thonet-antigua-c-1900-1/

But it does not detect any changes on the FRENCH and ENGLISH version of this same product.

Link to a page where the issue can be seen:

I expected to see:
The following link:
/en/antique-furniture/new-arrivals-amaru/antique-red-chair-thonet-chair-c-1900-1/
should be redirected to :
/en/antique-furniture/antique-chairs-and-armchairs/antique-red-chair-thonet-chair-c-1900-1/

I had to create it myself instead...
Instead, I got:

January 16, 2024 at 4:54 am #15187664

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Oriol,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

After trying to replicate the issue on a clean installation, I see the translation product is redirected automatically to the new URL after updating the category of the original product and translation.

The steps I tried:

1. Go to Settings > Permalinks > Add the category to the product slug.
2. Create a product and assign a category > Translate it.
3. Assign another category to the product > Save > Update the translation.

You can try on this sandbox site hidden link

Look forward to your reply.
Thanks

January 17, 2024 at 1:01 pm #15195017

oriolS-4

Hi Long Nyuen,

I think I did not explain myself clear enough. WPML plugin is working well: If I change the Product Category of main language (Spanish for me), WPML also changes the other languages URL. This is correct.

The problems comes from Redirection plugin. Redirection plugin only detects main language product URL has changed so it creates a redirection from OLD URL with OLD catagory to NEW URL with new category. This is correct. But it does not detect the changes on the other languages. You can see my screenshot of Redirection plugin new redirection created, but missing the English and French versions in my case...

I contact Redirection plugin team and they told me this is WPML problem.
You can see our conversation here:
https://wordpress.org/support/topic/redirection-and-wpml-compatible/#post-17346841

Can you please take a look and let me know?

Thanks!

Captura de pantalla 2024-01-17 a las 13.55.29.png
Captura de pantalla 2024-01-17 a las 13.54.50.png
January 18, 2024 at 1:49 am #15197489

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Yes, I understand you have concern about the Redirection plugin. I also make a test on the sandbox site as you see in the link above.
hidden link

The redirection is not recorded for the translation product by the plugin Redirection, however, I see it is adjusted by WPML and working properly.

I'm not sure if it is how WPML works with the Redirection plugin or an issue. I'm asking our 2nd tier support about this case and update you here when I have something to share.

Thanks.

January 18, 2024 at 7:47 am #15198264

oriolS-4

Ok, awaiting for your updates then,
Best regards,
Oriol

January 19, 2024 at 1:24 am #15202645

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Our 2nd tier support has checked and seen that it doesn't need to be recorded by the Redirection plugin. WordPress itself handles the category change and makes the redirection.

Look forward to your reply.
Thanks

January 19, 2024 at 12:51 pm #15205031

oriolS-4

Last time when I used your sandbox environment and when I changed the product category in ENGLISH, it was not changing this category to FRENCH. So no need to create redirection for French version (because there were no change in the FRENCH product URL).

I am not 100% sure about this, it seems Product Categories where not synchronized in your environment...
Can you please send me the link again to check again please?
Br,
Oriol

January 22, 2024 at 1:42 am #15209210

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

You can test again on the sandbox site hidden link

Then let me know steps to replicate the issue. I also suggest updating the translation product after you change the category of the original product if you see the issue.

Look forward to your reply.
Thanks

January 23, 2024 at 10:02 am #15215429

oriolS-4

Hi Long Nguyen,

I have checked on the sandbox site again. And yes, redirection in french is done automatically not via Redirection plugin but somehow in a different way (from WPML plugin, right?).

I would like to know which redirections are created by WPML.

Is any way to see the redirections list created by WPML in the same way I can see all the redirections created by Redirection plugin?

Best regards,
Oriol

January 24, 2024 at 2:44 am #15219411

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

As I mentioned above, WordPress itself handles the redirection after changing the product category (https://wpml.org/forums/topic/redirection-plugin-with-wpml-plugin-compatible/#post-15202645)
And currently, WPML doesn't support an option to monitor the redirection URL as the Redirection plugin does.

Thanks.