Yoast / duplicate-post

Yoast Duplicate Post plugin for WordPress
https://yoast.com
GNU General Public License v2.0
46 stars 35 forks source link

Polylang language links for page lost with rewrite & republish functionality #250

Open verkkovaraani opened 2 years ago

verkkovaraani commented 2 years ago

Hi

The language links for Polylang language plugin break when using the Duplicate Post plugins Rewrite & Republish functionality. Steps to reproduce:

  1. Install Duplicate post & Polylang
  2. Add at least 2 languages in polylang (For example FI & EN)
  3. Add the Polylang "Language switcher" to the menu
  4. Create a new page for both language and link them together. For example "Sivu" in FI and "Page" in EN
  5. If you now go to the Fi page "Sivu" and click the language switcher in the menu, you end up to the linked page called "Page" in english and when you click the language switcher in "Page" you end up to the page "Sivu".
  6. Use the "Rewrite & REpublish" functionality to one of the pages, for example "Sivu" in FI. MAke some changes and republish
  7. After republish, when you go to the FI page "Sivu" and click the language switcher, you end up to the linked page called "Page" BUT when you click the language switcher in the "Page", you end up to the front page, which is normal Polylang behaviour, if the other language page is not found. So basicly the link from EN to FI is broken when you use rewrite & republish for the FI page.