MultiChain / multichain-explorer

Web-based explorer for MultiChain blockchains
GNU Affero General Public License v3.0
177 stars 140 forks source link

Problem when not using multichain explorer from root path #17

Open ybbus opened 7 years ago

ybbus commented 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.

ybbus commented 7 years ago

some news on this one?

bitcartel commented 7 years ago

Hi @ybbus does the most recent commit fix this for you?