[BUG] Browser panel URL bar strips https:// when copying or editing the URL, breaking navigation
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The browser panel normalizes URLs inconsistently. When I paste google.com, it automatically adds https:// internally and displays www.google.com/ in the URL bar. When I paste https://localhost:44308/, the page loads correctly and the URL bar shows localhost:44308/ (the https:// is hidden). However, if I then copy the URL or edit it, the URL bar uses the version without https://, and the page fails to load because localhost:44308/ alone is treated as an invalid/different address.
What Should Happen?
When copying the URL, it should copy the real, fully-qualified URL (including the https:// scheme actually being used internally), not the display-only stripped version.
When editing the URL, the URL bar should show the actual scheme (https://) being used, so editing doesn't accidentally drop it and break navigation.
Error Messages/Logs
No explicit error message is shown; the page simply fails to load after copying/editing the URL because the scheme (https://) is missing from the resulting address.
Steps to Reproduce
- Open the browser panel in Claude Code.
- Enter https://localhost:44308/ in the URL bar. The page loads correctly, and the URL bar displays localhost:44308/.
- Copy the URL from the URL bar (or click into it to edit it).
- Notice the copied/edited value is localhost:44308/, without https://.
- Paste/submit that value again (e.g., in a new tab or after editing) — the page fails to load because the scheme is missing.
Note: as a comparison, pasting google.com (no scheme) correctly gets https:// added internally and resolves to www.google.com/, but this internal scheme is not reflected/preserved when copying or editing.
Claude Model
Not sure / Multiple models
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
Claude 1.22209.0 (77c938) 2026-07-16T05:39:45.000Z
Platform
Other
Operating System
Windows
Terminal/Shell
Other
Additional Information
The issue specifically affects local development URLs (e.g., localhost with a custom port and https), which is a common workflow when debugging locally running sites in IIS/ASP.NET.