My links turn into page_id

  • Unknown's avatar

    Hi,

    I’m managing my company’s website in multiple languages, and we noticed that the hyperlinks turn into page_id in the WordPress back office, which then leads to the page in the wrong language. For example, on this page: https://www.ragni.com/en/ when scrolling to the “Smart solutions” section and clicking on “mindful”, you’ll be redirected to the right page, but in French instead of English. When we change the link in the back office and use the right link (https://www.ragni.com/en/mindful-lighting-2/ ), despite saving the page and updating it, when going back to check, it changes the link back to the page id.

    Any idea how or why that is?

    It does that for every language, and no matter how many times we change it, it still goes back to the page id.

  • Unknown's avatar

    This issue occurs because of a conflict between the WordPress Permanent Link (Permalink) system and your translation plugin (likely WPML or Polylang). When you paste a full URL into the editor, WordPress recognizes it as an internal link and automatically “resolves” it to its unique Page ID to ensure the link doesn’t break if you change the page’s slug later; however, if the database has cached the French version as the “primary” ID for that content, it will stubbornly force all language versions toward that single destination. To fix this, you should avoid pasting the full URL and instead use the internal link search tool within the editor to select the specific English version of the “Mindful” page, which forces the translation plugin to map the correct language-specific ID. If the link continues to revert, you may need to check your Translation Management settings to ensure that “Synchronize page template” or “Copy custom fields” is disabled for that specific link field, as those settings will overwrite your English edits with the French original every time you hit “Update”.

Log in or create an account to reply