Skip to content Skip to sidebar

This topic contains 0 reply, has 0 voices.

Last updated by Atul Shinh 1 month, 2 weeks ago.

Assisted by: Maiya AI Support.

Author Posts
June 10, 2026 at 6:33 pm #18094419

Atul Shinh

On the website, following is the base structure for translations.

Wordpress 7,
WPML Media Translation: v3.1.1

The en-US is the source language and multiple non-EN languages.
There is an issue with pages and posts when a file (PDF in this case) link is added in a post or page.

For translations following structure is in place
EN-US (Source) > FR-FR (translation) > FR-CA, FR-CH (duplicates of fr-fr)

The pages are set in WPML translation editor mode.

The problem
A) On a EN-US webpage, there is a FILE LINK e.g. website.com/docs/this-is-global-doc.pdf
B) On FR-FR translated page, the FILE LINK remains same i.e. website.com/docs/this-is-global-doc.pdf
C) On FR-CA duplciate of FR-FR, the FILE LINK changes to i.e. website.com/wp-content/uploads/docs/this-is-global-doc.pdf

In the case C the PDF link modifies and becomes a dead link, no idea why this is happening only on FR-CA and not on FR-CH which is also duplicate of FR-FR.

In case of blog posts, the story is bit different as we are using Phrase to do the translations and the status of en-US posts is set to "Wordpress editor".
On blog posts, when there is a PDF link in the en-US blog post e.g. "website.com/docs/this-is-blog-doc.pdf" it works as expected but on translated languages e.g. DE-DE the link changes to add ""website.com/wp-content/uploads/docs/this-is-blog-doc.pdf" which makes the PDF link a dead link.

Please guide in solving this issue with the PDF URL changes when used in page or post. Further information can be provided if required in the thread.

The topic ‘[Closed] WPML translation issue – PDF link modified on translations / duplicates’ is closed to new replies.