[wp-trac] [WordPress Trac] #65417: Bug: Classic Editor link dialog prepends http:// to URLs with uppercase protocol

WordPress Trac noreply at wordpress.org
Fri Jun 5 06:35:50 UTC 2026


#65417: Bug: Classic Editor link dialog prepends http:// to URLs with uppercase
protocol
------------------------------+-----------------------------
 Reporter:  nimeshatxecurify  |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Editor            |    Version:
 Severity:  normal            |   Keywords:
  Focuses:  javascript        |
------------------------------+-----------------------------
 Steps to Reproduce

   1. Go to http://localhost:8889/wp-admin
   2. Create or edit a post/page
   3. Switch to the Classic Editor (Visual tab)
   4. Select some text (e.g. "click here") OR place the cursor in the
 editor
   5. Click the Insert/Edit Link button (chain icon in the toolbar)
   6. In the URL field, type: HTTPS://example.com (uppercase protocol —
 common on mobile keyboards with auto-capitalization)
   7. Click outside the URL field / press Tab (triggers the blur event →
 correctURL runs)

   Expected: URL remains HTTPS://example.com (or is normalized to
 https://example.com)

   Actual: URL becomes http://HTTPS://example.com — a completely broken
 double-protocol URL

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65417>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list