]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/dashboard: fix duplicated slash in html href 20229/head
authorShengjing Zhu <zhsj@umcloud.com>
Thu, 1 Feb 2018 08:47:26 +0000 (16:47 +0800)
committerShengjing Zhu <zhsj@umcloud.com>
Sun, 4 Feb 2018 10:47:44 +0000 (18:47 +0800)
commit24fe1cae636bf00e3d5923c7e826992d42d92946
tree26d94268923ff1795a61f4a49b4a1cb02f66223e
parentb890201fa651b390ebd3d2b1ff812324baf1883a
pybind/mgr/dashboard: fix duplicated slash in html href

The url_prefix val in html templates is expected not containing '/'
in the end. Otherwise the href will be rendered as '//static/', which
causes browser treating it as http://static/.

Fixes: http://tracker.ceph.com/issues/22851
Signed-off-by: Shengjing Zhu <zhsj@umcloud.com>
src/pybind/mgr/dashboard/module.py