From: Ricardo Marques Date: Mon, 23 Jul 2018 14:43:04 +0000 (+0100) Subject: mgr/dashboard: Fix cherrypy static content URL prefix config X-Git-Tag: v14.0.1~782^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23183%2Fhead;p=ceph.git mgr/dashboard: Fix cherrypy static content URL prefix config Fixes: https://tracker.ceph.com/issues/25067 Signed-off-by: Ricardo Marques --- diff --git a/src/pybind/mgr/dashboard/module.py b/src/pybind/mgr/dashboard/module.py index 65454eb396d..010339f0b07 100644 --- a/src/pybind/mgr/dashboard/module.py +++ b/src/pybind/mgr/dashboard/module.py @@ -289,7 +289,7 @@ class Module(MgrModule, SSLCherryPyConfig): mapper, parent_urls = generate_routes(self.url_prefix) config = { - '{}/'.format(self.url_prefix): { + self.url_prefix or '/': { 'tools.staticdir.on': True, 'tools.staticdir.dir': self.get_frontend_path(), 'tools.staticdir.index': 'index.html'