• Resolved Nate

    (@goseongguy)


    Hi,

    Plugin has been great so far. I have a page with a Table of Content block from Gutenberg. It links to the headings on the page correctly in the original language.

    However in the second language, I just discovered that nothing happens when I click any links in the TOC.

    When I open up the translate editor for the original language, the TOC links are clickable. When I load the strings in the second language in the editor, and hover the cursor over the TOC links, a red circle with a slash through it appears and doesn’t let me click them (although I can select the string for translation).

    So, what is the approach for handling a Table of Contents block in the other language? Is this a bug, or am I making a mistake somewhere?

    TIA,
    Nate

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Nate,

    Thank you for reaching us!

    Could you please let us know what plugin did you used to create the TOC?
    We will try to replicate this and come back with an answer to the issue.

    Cheers,

    Thread Starter Nate

    (@goseongguy)

    Hi Denis @sdenis,

    My Table of Contents block is part of the Ultimate Addons for Gutenberg plugin. It’s a block in their library list. I’m using it with all the H2 headings on my page at https://goseongguy.com/goseong-cafes/ if you want to see it in context.

    Thanks for checking,
    Nate

    Thread Starter Nate

    (@goseongguy)

    Hi @sdenis,

    Were you able to replicate the issue?

    I created a new Table of Contents block on another page that I haven’t translated yet. The block functions well (jumps to the correct heading when clicked) when I am on either the original page (domain/testingPage/) or the “translated” page, which I haven’t translated yet (domain/ko/testingPage/).
    But as soon as I add a translation string for a few of the headings in the block, and leave the rest of the headings in the block in English, the functionality of the block is broken in the following ways:

    MOBILE: Whole block broken on the “translated” (…/ko/…) page when a string in the block is translated. Even the headings that I left untranslated in English don’t work. But on the untranslated page, everything works (jumps to the headings when clicked).

    DESKTOP: On the translated page, the headings that I left in English DO work (this is different than mobile). But translated headings do NOT work. On the untranslated page, everything works.

    I tried not merging or deferring js scrips. I tried not merging CSS. I tried deactivating several plugins.

    Any ideas? If you CANNOT replicate the issue, that would also be helpful for me to know it’s likely not something on my end.

    Thanks!
    Nate

    Thread Starter Nate

    (@goseongguy)

    It appears that this has started working since one of UAG’s recent updates. Glad that one of the two parties made themselves compatible with the other.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Table of Contents anchor/hash links only working in original language’ is closed to new replies.