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

Improve support for X-Forwarded-Path #1459

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

moongladestorm
Copy link

X-Forwarded-Path is already supported in e.g. getTileUrls() from utils.js, but missing in other places.

This fixes the urls with X-Forwarded-Path for all templates (data.tmpl, viewer.tmpl, index.tmpl, wmts.tmpl).

This pull request adds support to the public_url from serveTemplate() function, used by data.tmpl, viewer.tmpl and index.tmpl. Additionally it adds support to baseUrl from serving wmts.xml.

@acalcutt
Copy link
Collaborator

acalcutt commented Feb 5, 2025

Don't the other pages do this through utils.js instead of doing it themselves? I thought here was a function to create the public url. I will look later when i have some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants