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+01:00)
Tagged: Exception
This topic contains 0 replies, has 0 voices.
Last updated by Bruno Kos 1 week, 2 days ago.
Assisted by: Bruno Kos.
Author | Posts |
---|---|
January 1, 2025 at 7:36 pm #16557425 | |
olegA-5 |
Background of the issue: Symptoms: Questions: |
January 2, 2025 at 7:15 am #16557718 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
Hi, Thank you for contacting WPML support! If I check that url as hidden link within hidden link I get: CONGRATULATION. Everything seems to be fine. <em><u>hidden link</u></em> 200 OK But If I test hidden link I get >>> <em><u>hidden link</u></em> > -------------------------------------------- > 301 Moved Permanently > -------------------------------------------- Status: 301 Moved Permanently Code: 301 x-dns-prefetch-control: on expires: Thu, 02 Jan 2025 08:13:05 GMT x-litespeed-tag: fc6_HTTP.301,fc6_HTTP.301 x-redirect-by: WPML Location: <em><u>hidden link</u></em> x-litespeed-cache-control: no-cache cache-control: no-cache, no-store, must-revalidate, max-age=0 content-type: text/html; charset=UTF-8 content-length: 0 date: Thu, 02 Jan 2025 07:13:05 GMT server: LiteSpeed alt-svc: h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46" connection: close So this would be an issue? Would you be willing to provide me with WordPress credentials so I could investigate the issue directly? I marked your next reply as private so that you can safely add credentials. Regards, |
January 2, 2025 at 2:36 pm #16559134 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
I am not sure I fully understand the difference here. E.g If I open hidden link and click its permalink, it takes me to: hidden link and no redirect. Can you confirm? But if I click this url hidden link from your initial message, it redirects to hidden link It happens with hidden link as well. Can you tell me what is the difference between these 2 approaches/URL as they give us different results? |
January 2, 2025 at 4:24 pm #16559523 | |
olegA-5 |
The difference is in the case of letter characters in escaped characters. For example, it could be %c9%99 or %C9%99 for ə. Look at the c character. |
January 3, 2025 at 6:23 am #16560355 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
I see - can you tell me what happens if you temporarily disable WPML and try opening hidden link, what happens then? The URL should remain the same, only without the /az part. Also, are these URLs available directly on the site or only if you type them so or paste into the browser directly? |
January 3, 2025 at 1:37 pm #16561541 | |
olegA-5 |
With WPML disabled, there is no erroneous redirection. |
January 3, 2025 at 2:01 pm #16561590 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
I am checking this with our 2nd tier and will keep you posted. I am not sure what is behind this. |
January 7, 2025 at 7:32 am #16568102 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
Here’s what we tried to investigate the issue: 1. We created a new WordPress site with no plugins installed, including WPML, and set the site language to Azerbaijani. However, when entering the URL `hidden link` directly into a browser, it results in a 301 redirect to a version of the URL with character encoding. For reference, here’s a screenshot of the behavior. Additionally, when checking the database, we noticed that the `post_name` field in `wp_posts` contains the encoded version of the URL. This confirms that encoding and redirects occur even in the absence of WPML. We’ve set up a sandbox environment for you to reproduce this issue under the same conditions (no WPML, etc.): hidden link Could you check if the same redirect behavior occurs there? |
January 7, 2025 at 1:33 pm #16569706 | |
olegA-5 |
If I understand you correctly, this is typical, expected and correct behaviour: all URLs on my site are always encoded, whereas when a page is opened, we see a human-readable address in the address bar, which is visually different for addresses containing characters outside the basic Latin alphabet. Let me remind you that this is not my problem. It's that the redirect is to a completely different page. Literally different. The problem is not the redirect per se within the variants of the same page's address. The redirect is to another page with exactly the same slug (I suppose that could be important) but in a different directory. It's like example.com/news redirecting to example.com/blog/news. |
January 8, 2025 at 11:48 am #16573081 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
Can you provide me with a site Duplicator package? As our 2nd tier will need to debug this. https://wpml.org/faq/provide-supporters-copy-site/ Please exclude all the media files, etc, to keep the package minimal. If this is not possible, are you able to set up a staging site with all the sensitive data excluded and then provide us with Duplicator package? |
January 8, 2025 at 2:07 pm #16573840 | |
olegA-5 |
How do I send download links (or make the message private)? |
January 9, 2025 at 12:39 pm #16577755 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
I marked your next reply as private so that you can safely share credentials and/or packages. |
January 10, 2025 at 9:27 am #16581099 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
This has been escalated to our 2nd tier team team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you. |