-
-
Notifications
You must be signed in to change notification settings - Fork 8k
server.open fails to add slash before relative path #11188
Copy link
Copy link
Closed
Labels
Description
Describe the bug
i am doing
npx vite --open index.html
actual result: the relative path is joined with the port number
http://http//localhost:5178index.html
expected result: index.html should have the same meaning as /index.html
http://localhost:5178/index.html
related #5068
Reproduction
-
Steps to reproduce
No response
System Info
npx vite --version
vite/3.1.7 linux-x64 node-v19.0.0Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable