Skip to content

uri_prefix breaks with a trailing slash #735

@jleedev

Description

@jleedev

When the uriPrefix has a trailing slash, the API server works but the static files become broken.

This breaks:

¶ cat config.toml 
[webserver]
uri_prefix = "/tegola/"
[…]
¶ docker-compose restart 
Restarting gnis_tegola_1 ... done
¶ curl localhost:8080/tegola/capabilities 
{"version":"v0.12.1", …
¶ curl localhost:8080/tegola/
404 page not found

But this works:

¶ cat config.toml 
[webserver]
uri_prefix = "/tegola"
[…]
¶ docker-compose restart 
Restarting gnis_tegola_1 ... done
¶ curl localhost:8080/tegola/capabilities 
{"version":"v0.12.1", …
¶ curl localhost:8080/tegola/
<!DOCTYPE html>…

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions