Skip to content

Conversation

@kycutler
Copy link
Contributor

URL.parse('localhost:3000').protocol // returns `localhost`

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes a bug where navigating to localhost:<port> URLs in the integrated browser failed due to URL parsing treating "localhost" as the protocol instead of the hostname.

Changes:

  • Added special-case handling to prepend "http://" to localhost URLs before the general protocol check
  • Updated comment to explain the localhost special case

@kycutler kycutler enabled auto-merge (squash) January 20, 2026 23:58
@kycutler kycutler merged commit 5e019f2 into main Jan 21, 2026
27 of 28 checks passed
@kycutler kycutler deleted the kycutler/localhostfix branch January 21, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants