question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Open browser with URL

See original GitHub issue

The -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:closed
  • Created 8 years ago
  • Reactions:18
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
appuristcommented, Dec 15, 2017

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 or http-server -o site1/test1.html

3reactions
dominique-muellercommented, Oct 10, 2017

Any news on this? Really seems like a useful feature to have!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found