Skip to content

[5.x]: Empty dropdown when creating link to asset or entry (site selector?) #545

@btbunze

Description

@btbunze

Description

In the link modal, when selecting an asset or entry, there is a dropdown that appears empty by default and has sites as options. Trying to select one of the options doesn't change anything on the page, but results in a console warning: "No reference tag hash present in URL: ".

Note: When the "+ Choose" button is clicked, the asset/entry selector appears as expected, and you can change the site you are choosing from in that menu.

Screenshot of link modal and console warning:
Image

Screenshot of dropdown options (sites + 'link to current site')
Image

Steps to reproduce

  1. Create a ckeditor field with link in toolbar
  2. Add field to a section
  3. Type and select text in field
  4. Click link button
  5. Select "Asset" or "Entry" from dropdown

Additional info

  • Craft version: 5.9.16
  • PHP version: 8.3
  • Database driver & version: MYSQL 8.0
  • Plugins & versions: CKEditor 5.2.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions