I’m trying to host the webapp (/index.htm) at a non-root location. This is part of a remote-access system, where the iotawatt is on a VPN and accessed via reverse-proxy.
If I remove the “/” from all the relevant paths (eg
var configNewURL = "config+1.txt"; # Note no /) it works ok. In particular, the config.txt file can be updated via /edit XHR call.
(Note that the /edit.htm ACE works-ish but fails on some files due to CORS problem. Likely fixable but low priority for me.)
This “relative-rooting” is consistent with the css loading (unchanged:
<link rel="stylesheet" type="text/css" href="cnfstyle.css">). Hence css loads without problems from http://server1.com/remote/site1/cnfstyle.css.
I hope that makes sense!
So finally, my question: do you think this will break anything, or a bad idea for any reason? Modified file attached. Happy to try a PR.
index.htm (117.6 KB)