geopython / GeoHealthCheck

Service Status and QoS Checker for OGC Web Services
https://geohealthcheck.org
MIT License
84 stars 71 forks source link

support trailing slashes on Flask routes #401

Closed tomkralidis closed 2 years ago

tomkralidis commented 2 years ago

Adds support for trailing slash support to URLs. When deploying GHC in a docker-compose setup on a port/subpath, the GHC home page would redirect to /. This PR fixes the issue.

tomkralidis commented 2 years ago

@justb4 looks like the CI errors are unrelated.

justb4 commented 2 years ago

Aha, after conversation with @tomkralidis

Problem is deploying to a port with a subpath, like:

http://localhost:8080/ghc This URL works:

http://localhost:8080/ghc/ This URL redirects like:

http://localhost:8080/ghc -> http://localhost/ghc The PR fixes that behaviour.

justb4 commented 2 years ago

@justb4 looks like the CI errors are unrelated.

Yes, opened: https://github.com/geopython/GeoHealthCheck/issues/402