When more than 10 paragraphs are created, the link to the first redirects to the last one of the 1X
var paragraph = $(accordion_id).find('a[href*=\\'+ thash + ']').closest('h3');
the search is carried out by matching and not by full equality
so everyone starting with 10 paragraphs has this matching, and jquery chooses the last one

CommentFileSizeAuthor
#2 3065996_repair_find_paragraph.patch658 bytesoleh.tarasiuk
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    1 hidden branch
  • 8.x-1.x Comparechanges, plain diff MR !5

Comments

unicom510 created an issue. See original summary.

oleh.tarasiuk’s picture

StatusFileSize
new658 bytes
gisle’s picture

Status: Patch (to be ported) » Needs review

Setting correct status.

gisle’s picture

Assigned: oleh.tarasiuk » Unassigned

Unassigning. Somebody else need to review.

mshdevx’s picture

@unicom thanks for informing. I will take a look on it!

mshdevx’s picture

Status: Needs review » Needs work

I reproduced the issue. Tested your patch seems works fine with simple IDs and in default mode with title aliases.

mshdevx’s picture

Assigned: Unassigned » mshdevx