Skip to content Skip to sidebar

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
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -
- 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 12 replies, has 0 voices.

Last updated by Kor 5 months, 3 weeks ago.

Assisted by: Kor.

Author Posts
November 3, 2025 at 10:29 am #17540268

Marketing Tech

Background of the issue:
We duplicate our pages from PT-BR to PT-PT following this WPML documentation: https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/. We’re encountering an issue with internal links on our pages.

Symptoms:
After duplicating the page, some internal links are redirecting to the wrong URLs. For example, on the page hidden link, a link within the dropdown redirects to the /zh-tw/ version instead of /pt-br/, which is the expected link.

Questions:
Could you please help us understand why internal links are redirecting to the wrong URLs after duplicating pages?
How can we resolve the issue of incorrect internal link redirections after duplicating pages?

November 3, 2025 at 2:15 pm #17541656

Kor

Thanks for your patience. It looks like we're disconnected from the chat. Please share temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

November 4, 2025 at 11:51 am #17545264

Marketing Tech

Hello,

We're you able to login?

November 4, 2025 at 1:56 pm #17546067

Kor

Thanks for your reply. I'm getting "Error: The username test is not registered on this site. If you are unsure of your username, try your email address instead." and could you please check?

November 5, 2025 at 7:52 am #17548382

Marketing Tech

Hello,

Sorry for not being clear.
We already given you an access on this ticket - https://wpml.org/forums/topic/wpml-translation-editor-loading-slowly-and-timing-out-504-gateway-timeout/#post-17474209

Can you please use the credentials from the link I provide? If you can't still not login please let my reply in private so I reshare it with you.

Thank you!

November 5, 2025 at 1:12 pm #17550335

Kor

Thanks for your reply. Looks like a dynamic link and you'll have to correct it manually in the advanced translation editor, as shown in the attached screenshot.

I've added some custom XML configuration below into WPML > Settings > Custom XML Configuration to allow you to do that. hidden link

   <gutenberg-block type="gutentor/e2" translate="1">
       <key name="e2Link" type="link" />
    </gutenberg-block>
Screenshot_133.png
November 6, 2025 at 8:21 am #17552473

Marketing Tech

Hello,

Can you please clarify what do you mean by "dynamic link"?

Based on your screenshot, is the best practice for adding the links is to use the full URL on English page to avoid this issue?

For example: We should have added hidden link?

If you can provide please more details on why have this issue that would be great. Thank you!

November 6, 2025 at 8:50 am #17552579

Marketing Tech

Also, can you please explain what your customization does and help our issue. Thank you!

November 7, 2025 at 8:00 am #17556147

Kor

Thanks for your reply. Yes, using a full URL should allow WPML to scan and automatically point the URL to the translated version.

The custom XML configuration that I've shared should tell WPML how to translate the button links.

November 7, 2025 at 9:02 am #17556350

Marketing Tech

Thank you for confirming and providing us the best practice for adding links.

When we start using WPML, 3yrs ago we added the links starting from the language code for example /us-en/language-training-academy/ and we haven't had this issue before. What could be the possible reason that we have it now?

November 7, 2025 at 9:19 am #17556404

Marketing Tech

Also, I ran a few tests on my side.

I updated several links on the Individual Lessons page by adding the /pt-pt/ URLs. The changes are reflected correctly for most links, but one of them — Conversation Classes — still points to the /zh-tw/ link.

Here’s the Portuguese page:
hidden link

And here’s the ATE page I’m updating:
hidden link

I was under the impression that the customization you added -
<gutenberg-block type="gutentor/e2" translate="1">
<key name="e2Link" type="link" />
</gutenberg-block>
would resolve this issue.

Should we still manually update the US page and include the full URLs for these links?

November 10, 2025 at 7:16 pm #17564105

Kor

Thanks for your reply. Let me escalate this to our 2nd Tier Support and I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

November 12, 2025 at 5:26 pm #17572225

Kor

Thanks for your reply and my apologies for the confusion. It appears you have three tickets open and two of them are related to the same issue.

For this ticket https://wpml.org/forums/topic/wpml-translation-editor-loading-slowly-and-timing-out-504-gateway-timeout/page/3/ ,I’m still waiting for your response regarding the SQL dump and the zipped copy of your entire site as mentioned earlier.

We’re requesting the snapshot because our 2nd Tier Support suspects the delay occurs on your server while generating the XLIFF file that’s sent to ATE rather than within ATE itself. This aligns with the findings from the earlier ticket linked above.

For this current ticket, I’ll need the snapshot to investigate why the links aren’t pointing to the correct translations. Working locally will allow me to troubleshoot the issue directly and replicate it on a clean installation using the same configuration as your site.

The topic ‘[Closed] Incorrect Internal Link Redirections After Duplicating Pages (PT-BR → PT-PT)’ is closed to new replies.