Open ybbus opened 7 years ago
There is a problem when multichain is for example used behind a reverse proxy.
e.g. when you use nginx and do the following mapping:
location /explorer { proxy_pass http://localhost:2750; }
There are some links broken. Most of the links use a relative link path, but there are some links that use the absolute root path.
For example:
body += ['<td>Blocks</td>','<td><a href="/', escape(chain.name), '/blocks/">', info_resp['blocks'], '</a></td>']
at: https://github.com/MultiChain/multichain-explorer/blob/master/Mce/abe.py#L718
does not link to /explorer/ChainName/blocks/ it links to /ChainName/blocks because of the / at the beginning of the link ref.
some news on this one?
Hi @ybbus does the most recent commit fix this for you?
There is a problem when multichain is for example used behind a reverse proxy.
e.g. when you use nginx and do the following mapping:
There are some links broken. Most of the links use a relative link path, but there are some links that use the absolute root path.
For example:
at: https://github.com/MultiChain/multichain-explorer/blob/master/Mce/abe.py#L718
does not link to /explorer/ChainName/blocks/ it links to /ChainName/blocks because of the / at the beginning of the link ref.