Allow block explorer be served from a subdirectory
I'd like to be able to serve the block explorer from a subdirectory (e.g., https://my-host-name.com/block-explorer/
). Right now, I'm pretty sure the only way to run it is to give it its own hostname, because many of the places where it generates internal links from one page to another start the href with /
. I'd like to be able to make it an option people can run with haf_api_node
, even if they don't want to make the block explorer publicly available on its own hostname.
I guess this could be done either by allowing me to tell the block explorer that it's installed under /block-explorer
via an environment variable or config file, or by just making all internal URLs relative so that it doesn't matter. Either would work for my needs.