Skip Navigation

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.

This topic contains 6 replies, has 2 voices.

Last updated by antoniusP-2 1 month, 2 weeks ago.

Assisted by: Long Nguyen.

Author Posts
September 25, 2024 at 1:45 am #16217848

antoniusP-2

Dear Mr Long,

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.

Regards,
TT

September 25, 2024 at 1:56 am #16217852

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

Here is the new ticket. Can you please share clear steps to replicate the issue on the staging site?

For example, the redirection:

- Source: fr/produit/costa-rica-excursions-5-en-1-tortuguero-canal-cahuita-national-park/
- Destination: hidden link

However, the correct slug in French language is
hidden link

Notice: 5-in-1 -> 5-en-1

Please recheck this and let me know if the issue persists on the staging site.

Looking forward to your reply.
Thanks

Redirections ‹ Tour Guide Costa Rica — WordPress 2024-09-25 08-54-15.png
September 25, 2024 at 9:14 am #16219259

antoniusP-2

Dear Mr Long Nguyen,

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

Regards,
TT

Staging Site Dashboard Problems - see All Products - made Small Edit in Title.png
tried to reproduce - not able- see rm redirection trash - staging site.png
September 26, 2024 at 2:14 am #16222875

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

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

Looking forward to your reply.
Thanks

Redirections ‹ Tour Guide Costa Rica — WordPress 2024-09-26 09-13-35.png
Products ‹ Tour Guide Costa Rica — WordPress 2024-09-26 09-00-16.png
16219259-Staging_Site_Dashboard_Problems_see_All_P.png
September 26, 2024 at 10:07 am #16224292
antoniusP-2

Dear Mr Long,

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

ATE and Marked Paragraphs.png
example RankMath Direction after Edit Product Page - example 1.png
September 27, 2024 at 1:59 am #16227915

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

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.

Looking forward to your reply.
Thanks

September 30, 2024 at 11:17 am #16235772

antoniusP-2

Dear Mr Long,

Only on the live site it occurred again, see enclosed screenshot [tourguide-costa rica.com], you can see it on live site, so have login credentials.

It is not a problem [I can delete these re-directs after de-activing those].

RankMath gave me the following feedback:

Screenshot E
hidden link

Screenshot F
hidden link

Regarding the Screenshot E and F

To attempt to resolve this issue, consider installing the WPML SEO glue extension:
https://wpml.org/compatibility/2021/04/wpml-seo-plugin-better-integration-with-seo-plugins/

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:

add_filter('rank_math/woocommerce/product_redirection', '__return_false');

Here’s how you can add filter/hook to your WordPress site:
hidden link

I did NOT add the code"add_filter" too risky, I can de-activate those links myself.

Alle the rest is clear

Regards,
TT

example RankMath Direction after Edit Product Page - example 1.png
September 30, 2024 at 11:19 am #16235789

antoniusP-2

Thank to sharp eye, and detailed look fo Support.

Thanks Mr Long, like always.

Regards,
TT