windows - How to open local .htm file with anchor(#) link in Edge browser from command line? -
i try open local .htm file anchor link in edge browser command linе.
launchwinapp.exe "file:///c:/index.htm#anchor.htm"
but edge browser opens index page file:///c:/index.htm
without additional page.
why happening?
for time being, cannot open local files in manner. should instead host web-server out of target folder, , access resources via localhost.
there discussions taking place within microsoft edge team around topic, , may able improve experience developers yourself.
if/when make change, impacting issue, i'll return update answer. however, time being, best option host local server. instructions doing using npm , node.js provided below.
if you're unsure how stand local server, following these steps:
- install latest version of node.js
- open command prompt, , run
npm install -g http-server
- navigate website folder, , shift+right click select open command window here
- run command
http-server
there is gif of process online.
Comments
Post a Comment