Open browser with URL
See original GitHub issueThe -o option is really handy, but unless I’m missing something I can’t ask for anything other than the root to be opened? It’d be handy if we could specific a relative path, e.g.
http-server -o /pages/index.html
Opens browser with http://localhost:8080/pages/index.html
Issue Analytics
- State:
- Created 8 years ago
- Reactions:18
- Comments:15 (2 by maintainers)
Top Results From Across the Web
Open URL in Default Browser VI - NI - National Instruments
URL is the URL you want to display in the default Web browser. For example, wire http://www.site.com/report.html to this input to display the ......
Read more >Windows: Make Shortcut Open Website with Specific Browser
How to Make Windows Desktop Shortcut for Specific Browser · For the location, type the path to the browser you wish to use...
Read more >Can I force a link to open in a specific browser? - Stack Overflow
You can open a link in Microsoft Edge from any browser by adding microsoft-edge: in front of the url in the HREF.
Read more >Open Link Pro - Browser Picker on the Mac App Store - Apple
Open Link Pro - Browser picker is the best macOS app that lets you choose between browsers like Safari, Chrome, Firefox, Opera, Brave...
Read more >Window.open() - Web APIs | MDN
Users may use browser built-in features or extensions to choose whether to open a link in a new window, in the same window,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t understand what the
path
part of-o [path]
was supposed to do it if did not behave this way. At least one of the four combinations above should be working. I find that (at least on my Linux installation) that it only launches the browser (at all) if I do not specify the path after-o
at all.Any progress on this issue? I’d love to specify a location and a file, or have the root location be implicit in the file, e.g.:
http-server site1 -o test1.html
orhttp-server -o site1/test1.html
Any news on this? Really seems like a useful feature to have!