[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 14:05:47 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 | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses: javascript
testing |
-------------------------------------------------+-------------------------
Description changed by sabernhardt:
Old description:
> 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
New description:
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#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list