From be4c42a9393e9b8ae00ca6124a22bd125fa24ec3 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 (cherry picked from commit a36eff1e51928777f9efda62da723902257f9d48) --- 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 87ecdcb672da9..a3934e93a8b29 100644 --- a/src/pybind/mgr/dashboard/module.py +++ b/src/pybind/mgr/dashboard/module.py @@ -276,7 +276,7 @@ class Module(MgrModule, SSLCherryPyConfig): mapper = 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