]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/dashboard: fix duplicated slash in html href 20325/head
authorShengjing Zhu <zhsj@umcloud.com>
Thu, 1 Feb 2018 08:47:26 +0000 (16:47 +0800)
committerJohn Spray <john.spray@redhat.com>
Mon, 5 Feb 2018 15:10:51 +0000 (16:10 +0100)
commit03569abb408e603e4799f97eac333d118ddf23c7
tree79834962e9b0c02dbc229d542d9670293fa403e8
parent4974d42eea073bd1f2f27cdd3b5a35be789450a7
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>
(cherry picked from commit 24fe1cae636bf00e3d5923c7e826992d42d92946)
src/pybind/mgr/dashboard/module.py