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

Support relative URLs #1400

Merged

Conversation

sweco-semara
Copy link
Contributor

@sweco-semara sweco-semara commented Sep 9, 2023

Realizes #1396 / resolves #1399.

Tested with:

  • layerswitcher
  • print
  • search
  • infoclick
  • location
  • sketch
  • measure
  • anchor
  • coordinates

Copy link
Member

@Hallbergs Hallbergs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

I haven't tested it with relative url:s - but it works as expected with regular url:s.

@Hallbergs Hallbergs merged commit 36542d6 into hajkmap:develop Sep 12, 2023
@sweco-semara
Copy link
Contributor Author

@Hallbergs I have tested with relative URL:s in two environments using different "base" URL:s, so with your absolute URL testing this gives a solid test coverage. The upside of this patch/PR is a fully portable Hajk config where layers+map config JSON can be copy/pasted between stage or acceptance testing and production environments. I suppose it also simplifies in some container scenarios for Docker et.al. Thanks for review and merge!

@sweco-semara sweco-semara deleted the feature/1399-support-relative-urls branch September 12, 2023 16:29
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