• Resolved verkkovaraani

    (@verkkovaraani)


    Hi

    Thanks for the great plugin! I think we found a bug however. We are using Polylang for language translations. If we use rewrite & republish for a page which has other language pages as well, after republishing, it breaks the links from the other page to this page. My guess is that it has something to do with the page ID changes that happen with the rewrite/republish.

    So for example, if you have a Finnish page called “sivu” which has a link to english page “page”. If you rewrite & republish the Finnish page, it still links to the english page “page”. But the link from the english page to “sivu” has been lost and it redirects to front page (which is normal behaviour if the page is not set).

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @verkkovaraani

    We understand that there’s an issue between Yoast Duplicate Post and Polylang with the linking to the different pages and translations that ends up broken when using the rewrite & republish feature.

    We suggest that you create a new bug report in the Duplicate Post GitHub issues repository.

    Please make sure you add all of the necessary information to reproduce the issue – https://yoast.com/help/how-to-write-a-good-bug-report/

    Thanks!

    Any fix for this?

    Thread Starter verkkovaraani

    (@verkkovaraani)

    No real fix, our resolution has been to fix the language links manually after using the rewrite-republish feature

    Hi and thank you very much for your reply.

    Yet, I haven’t understood your fix. Could you kindly explain it further? Thanks.

    Thread Starter verkkovaraani

    (@verkkovaraani)

    Basicly after you use the rewrite-republish post, you need to go to the article and select the correct articles in different languages, so it will recreate the language links. So no fix, you just manually readd the links after using the plugin.

    Ok but… Do you mean manually intervene in the html code to edit the <head> section? If so, how can I do that?

    Thread Starter verkkovaraani

    (@verkkovaraani)

    The way you normally link two different language articles to each other with polylang. I dont see why head section would be relevant here, somehow it seems to me we might be talking about different things. Sorry I cannot help you more.

    • This reply was modified 2 years, 6 months ago by verkkovaraani.

    First of all, thank you very much for your infinite patience.

    The point is… how can I link the articles again through Polylang? Let’s make an example.

    I rewrite and republish a native post, Italian in my case. Automatically, the translated one in English loses its link with it. Now, if I open that article I’ll obviously notice that the Italian translation is missing as a consequence of the linking break. So, how can I link it again with the Italian one? Of course I can’t add a new translation by pressing on the + button… It would mean writing a new article, but obviously I have it already, it’s just that it’s missed the linking!

    Image here

    Sorry for the long post but I wouldn’t have known how to explain it without a practical example.

    • This reply was modified 2 years, 6 months ago by fabykennedy.
    Thread Starter verkkovaraani

    (@verkkovaraani)

    You should read the polylang user instructions or ask them how to do that. Just write the name of the article you want to link to into the field.

    Yes I tried but it didn’t work. So are you telling me that it’s only about writing the title of the existing article in the field?

    In case your answer is positive I’ll be forced to contact the assistance because it would mean there’s definitely something wrong here.

    All right, my mistake, I did a copy and paste of the title instead of writing it manually. But once again there’s a problem… I write the title, see the dropdown menu with all possible articles where to choose from and it finds anything but the one I need… It’s absurd… It’s like the articles I rewrite and republish no longer existed for Polylang… Didn’t you encounter the same issue? Anyway I reported it on the support forum but I’m almost sure they won’t reply me…

    have exactly the same issue, you can’t relink the existing other language page anymore, because that dropdown list has all pages except the translation one

    e.g if you have 3 pages 1 2 3 with 2 different languages
    a1 -> z1 , a2 -> z2, a3 -> z3

    if I want to relink on a1 to z1, I only can chose from z2 or z3 but not the right page z1

    I think I’ve found a solution. Well, it’s quite “artisanal” but effective.

    I state that I’m using another plugin instead of Yoast Duplicate Post but it should do the trick as well.

    When you rewrite and republish a post the translated one loses the linking with it right? Well, all you have to do is republish the article that loses the linking. No matter if you don’t apply any edits, just use the plugin to republish it. After that, you’ll be able to link it again to the other one. Try writing the post title in the autocomplete input field, this time Polylang will recognize the article and you’ll be able to add it as a translation.

    I’m still testing this solution in my local environment but so far so good. Hope it helps.

    thanks, I’ll give your solution a try next time I run into this problem,
    as it sounds much more effective than the solution I used here before knowing your solution

    I just used phpmyadmin and changed the value in the DB

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Polylang language references not working when using Rewrite & Republish’ is closed to new replies.