[Resolved] RankMath redirections go to US default page
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported an issue where small edits to the US default page resulted in automatic RankMath redirections to incorrect language versions of the page. This was observed across multiple language versions such as ES, FR, and DE, redirecting to the US info pages instead of the appropriate language pages.
Solution: We asked the client to replicate the issue on a staging site with clear steps and provided an example of how to set up a correct redirection. We suggested checking the destination URL after making a small change to the product in the English language and then updating the translation in French to ensure the destination URL does not change. We also provided a screen recording to demonstrate the correct process: screen recording.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum for further assistance.
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.
One other important thing, the small Edits result in automatic RankMath redirections, which go to US default page, resulting in button link to wrong language.
Easy to solve, inactivate to Redirects and Delete those, but this seems to be a bug.
I edited the page in US Default on the staging site:
hidden link
I can not find any redirection "this time", and it seems now not the case.
But
a] seems I have problems with staging site - see screenshot all products - only see 1 product, [perhaps my PC]
Do you experience, same on staging site?
b] you can see [also see other screenshots] the redirections on the staging site, in the trash box, I kept some [for showing] in trash you see the WPML translations of Products went to US Default, after Edit on Product Page.
I deleted and inactived those [in the past], so that all works again
a] No, I don't see that issue on my end. Maybe the SEO details column shows the content too long and you need to scroll down to view other products. You can remove the SEO details column and recheck the issue. Please check the attached screenshots.
b] As I mentioned above, please correct the translation product URL in the redirection and recheck the issue. hidden link
After you found the problem with the slides, I made some Edits and translated the French Page [of Finca van Maar | Finca Tayky].
Coincidently, I re-produced the isse with URL, see enclosed Screenshot.
I talk about the URL's RM creates [sometimes - not always], when edit or small edit to US page.
If you look at live site [tourguide-costarica.com] - check RankMath Redirection.
You will 6 re-directs of Product Pages, of which the ES / FR / DE language point, suddenly to US Info Pages, instead of the ES FR and DE pages.
Solution
= easy, just de-activate en delete the RM redirections.
The Reason I did not:
= to show you what I mean.
At my site, this happens often [not sure about other websites - combination RM and WPML], if this would be the case = something business development [could look at it]
-
Regards and thanks,
TT
Notes : below - if you hear, see this more often [on other websites], perhaps worthwhile = discuss this with business development = if you think this is worthwhile
Other comment = More business development I think [also], often keywords are not translated in the ATE, for the French Language [over 90% of cases - I translate those manually then - if I see a page again, myself with a browser tool. But the ATE simply does not translate those, like stated over 90% of cases.
[[[Same for "Titles" in the Spanish Language = later one does not happen that often - I have not checked that regular, so I am not sure, how often] and if this is incidental.
Other comment = sometimes paragraph with bold accent, underlined, etc, are not accepted by the ATE. Often it can be solved, by hand with the ATE. In other "Cases", see screenshot [only solution is to change the US Default Page].
Example below of a simple one = French Translation of Info "Page" = Finca van Maare.
See the paragraph in the screenshot - this one probably can be resolved manually [but I had to translate more complicated "paragraps" with markers [and the ATE simply did not accept]
= solution = save to momeny [complete ATE not possible] - go back = wait a whille and try again, to complete translation = if not change marked paragraph of US default page
New threads created by Long Nguyen and linked to this one are listed below:
Can you please try to replicate the issue on the staging site with clear steps?
According to your screenshots, I see that the correct product URL in French language is hidden link
However, the redirection is set:
- Source: fr/produit/costa-rica-jungle-lodges-and-camping-pres-de-limon-cahuita-finca-van-maare/
- Destination: hidden link
Why is the source product URL correct and needs to be redirected to another URL that isn't correct?
On your staging site, I create a redirection:
- Source: fr/wpml-test
- Destination: hidden link
then I make a small change to the product in the English language > save > update the translation product in French. You can see in the screen record, the destination URL doesn't change. hidden link
Please ensure the destination URL is correct and check the issue again.
For other issues, I will split this ticket into new ones for better handling. In this ticket, I will focus on the redirection issue only.
This issue is related to the Remove Base option from our plugin which is available by going to Rank Math → General Settings → WooCommerce → Remove Base and is being investigated to find a definitive solution.
When the Remove Product Base option is enabled, the Rank Math plugin redirects the old URL with the product base to the new one. This redirection code is not working well with the multi-domain option of WPML. For now, you can add the following filter to fix the issue on your site: