Skip to content

Conversation

@sjaek
Copy link

@sjaek sjaek commented Jan 20, 2021

The base url is not the same as the blueprint mount point because the blueprint url is relative to the application context root.
So either the jinja template needs to be altered to use relative urls, or the base_url should be determined per request.
This commit changes the base_url to url_for(".show"), this makes the UI work for both proxied and direct requests.

@sjaek sjaek force-pushed the proxyfix-forwarded-prefix branch from fad23c4 to 02a8dbd Compare January 21, 2021 08:45
The base url is not the same as the blueprint mount point because the blueprint url is relative to the application context root.
So either the jinja template needs to be altered to use relative urls, or the base_url should be determined per request.
This commit changes the base_url to url_for(".show"), this makes the UI work for both proxied and direct requests.
@sjaek sjaek force-pushed the proxyfix-forwarded-prefix branch from 02a8dbd to 3f6b313 Compare January 21, 2021 08:48
@michael-xiii
Copy link

Actual problem +1

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

Successfully merging this pull request may close these issues.

2 participants