Fetching styles fails when running on other port than 80
Maputnik version:v2.1.1 Browser: Firefox OS: Linux
Description of the bug: When I start up the app it fetches its styles from http://localhost/styles/ however my app runs on http://localhost:8888/
Steps to reproduce the behavior:
- Run maputnik in a podman container at port 8888
- Start the app
- The styles get queried from
http://localhost/styles/and nothttp://localhost:8888/styles/
Style file or style URL:
Screenshots:
As far as I understand, /styles is applicable to Maputnik Desktop . If you do not use Maputnik Desktop, I believe you can safely ignore that error message, as I do.
As for port numbers, I assume that by "Run maputnik in a podman container at port 8888" you mean that Maputnik's port 80 is published to the host as port 8888. This is usually done using -p 8888:80 or an equivalent. It also means that port 8888 is available at the host and it "redirects" to port 80 within the container. On the other hand, when Maputnik is run in a the container and it opens a link to localhost, it connects to the ports within the container, where port 8888 was not created.