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:

  1. install latest version of node.js
  2. open command prompt, , run npm install -g http-server
  3. navigate website folder, , shift+right click select open command window here
  4. run command http-server

there is gif of process online.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -