CW_BASE_URL ending on /cms leads to files in /data to not be found
Short description:
CW_BASE_URL https://k8s-cms-base-url.francearchives.demo.logilab.fr/cms leads to files in /data to not be found while https://k8s-cms-base-url[k8s-cms-base-url.francearchives.demo.logilab.fr works fine
Version: 3.28
Long description:
Changing CW_BASE_URL from https://k8s-cms-base-url.francearchives.demo.logilab.fr to https://k8s-cms-base-url.francearchives.demo.logilab.fr/cms leads to 404 errors on any files in /data, while the application itself works fine. This behavior has been observed in our Kubernetes deployment (its unclear whether our prod or preprod deployments are showing this behavior as well, since these files are served directly by nginx).
The following behavior is observed for a given URL
https://k8s-cms-base-url.francearchives.demo.logilab.fr/cms/data/846f3564704e5cf0325b6b3fea7a6866/css/bootstrap.min.css/ (how it is send by the application) -> not found error by application
https://k8s-cms-base-url.francearchives.demo.logilab.fr/cms/data/846f3564704e5cf0325b6b3fea7a6866/css/bootstrap.min.css (no slash) -> not found error by application
https://k8s-cms-base-url.francearchives.demo.logilab.fr/data/846f3564704e5cf0325b6b3fea7a6866/css/bootstrap.min.css/ (no /cms) -> not found error by web server
https://k8s-cms-base-url.francearchives.demo.logilab.fr/data/846f3564704e5cf0325b6b3fea7a6866/css/bootstrap.min.css (no slash, no /cms) -> file found \o/
It's not urgent, since we will probably serve our /data files by nginx in this case as well, but I would be greatly interested in finding out what the problem is.