svg - ../ For Parent Directory Not Working HTML -


all,

i did bit of research haven't found exact thread or resolution issue.

i using express in webapp, chrome version 60.0.3112.113, , win 10 version 1703.

i developing site want use hamburger svg mobile navigation. how html sits "topbar"

<div id="topbar">    <img src="../images/hamburger.svg" alt="ham"> </div> 

and here file structure:

https://puu.sh/xxdih/c842297b54.png

according structure, should need ../images/hamburger.svg, when that, comes 404 error in waterfall. have run issue multiple times doing sort of html sourcing parent directories, in js files works fine.

i'm not sure issue is.

for express server,every uri processed express contains resource url , request url.

  • request url(api) refered express api config
  • resource(image, js, css, html...) relative static server's root directory defined using express.static(root_path).

that's want say.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -