We've just run into a problem on a couple of sites. I can't be certain that it wasn't happening before, but I suspect it may be related to Open specific item by named anchor.

So, picture a ckeditor accordion living on a page at https://foo.com/page-with-accordion

Within this accordion is a link to a named anchor on another site: https://bar.com/another-page-entirely#baz

When you click the link within the accordion, nothing happens. If you move the link outside the accordion, it works. If you remove the fragment from the link, it also works (but of course, doesn't go to the named anchor). All the other links in the accordion, which don't have fragments, work normally.

Is it possible the new code that allows for a fragment to target a specific section of the accordion is interfering with fragments that don't target the accordion?

Comments

wrd-oaitsd created an issue. See original summary.

fhelms’s picture

I am having the same problem. Other anchors stop working when the accordion is used on the same page.

seanmacgillivray’s picture

We're seeing this in the wild as well where named anchor links outside CKeditor accordions don't work, reverting to 2.0.1 fixed it for us.

j-vee’s picture

Status: Active » Fixed

Hi there, thanks for the reports. There's now 2.0.3 available to fix this: https://www.drupal.org/project/ckeditor_accordion/releases/2.0.3

Let me know if the issue persists for you still!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.