From a36eff1e51928777f9efda62da723902257f9d48 Mon Sep 17 00:00:00 2001 From: Ricardo Marques Date: Mon, 23 Jul 2018 15:43:04 +0100 Subject: [PATCH] mgr/dashboard: Fix cherrypy static content URL prefix config Fixes: https://tracker.ceph.com/issues/25067 Signed-off-by: Ricardo Marques --- src/pybind/mgr/dashboard/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.39.5