[Resolved] Redirection plugin with WPML plugin compatible?
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.
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:
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.
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...
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.
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.
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
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.
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?