Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when not using multichain explorer from root path #17

Open
ybbus opened this issue Jan 30, 2017 · 2 comments
Open

Problem when not using multichain explorer from root path #17

ybbus opened this issue Jan 30, 2017 · 2 comments
Assignees

Comments

@ybbus
Copy link

ybbus commented Jan 30, 2017

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 ybbus changed the title Problem when not using multichain from root path Problem when not using multichain explorer from root path Jan 31, 2017
@bitcartel bitcartel self-assigned this Mar 19, 2017
@ybbus
Copy link
Author

ybbus commented Jul 12, 2017

some news on this one?

@bitcartel
Copy link
Contributor

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

@bitcartel bitcartel reopened this Jul 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants