Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server.open fails to add slash before relative path #11188

Closed
7 tasks done
milahu opened this issue Dec 5, 2022 · 0 comments · Fixed by #11394
Closed
7 tasks done

server.open fails to add slash before relative path #11188

milahu opened this issue Dec 5, 2022 · 0 comments · Fixed by #11394

Comments

@milahu
Copy link
Contributor

milahu commented Dec 5, 2022

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.0

Used Package Manager

npm

Logs

No response

Validations

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant