Skip to content

Inconsistencies in behaviour between link field and CKEditor link when adding links without url scheme #604

Description

@Alejandro-AP00

Description

When creating links using the regular link field in Craft CMS, adding a link without a scheme, for example, google.com, would add the https:// to whatever value you selected. When doing this within the CKEditor link, the result is different; the scheme is not added to the link.

Steps to reproduce

  1. Create a regular link with the options enabled for Allow root-relative URLs, Allow anchors, Allow custom URL schemes
  2. Use it by adding google.com without a scheme, when copying the link the https is added
  3. Create a new CKEditor field.
  4. Add a link with the same google.com without a scheme, this one doesn't auto add the https

Additional info

  • Craft version: Craft Pro 5.10.2
  • PHP version: 8.5.5
  • Database driver & version: MySQL 8.0.33
  • Plugins & versions: CKEditor 5.5.0

Thank you for your help!

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