Skip to content

Bookmarks silently disappear on save if the ID contains a question mark #587

@thisisjamessmith

Description

@thisisjamessmith

Description

If an editor creates a CKEditor bookmark with an ID containing a question mark (e.g. faq-can-i-return-it?), the bookmark vanishes on save with no warning. Naturally we can't expect question marks to work in URI fragments, but I'd say the expected behaviour should be to just silently strip them out rather than failing. Possibly an issue with HTML Purifier according to Claude(?).

Steps to reproduce

  1. Have the bookmarks functionality enabled in the CKEditor toolbar
  2. Create an anchor with a question mark
  3. Save and see it disappear

Additional info

  • Craft version: 5.9.23
  • CKEditor version: 5.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions