diff --git a/swift/common/middleware/staticweb.py b/swift/common/middleware/staticweb.py index bd799a8743..9638514da8 100644 --- a/swift/common/middleware/staticweb.py +++ b/swift/common/middleware/staticweb.py @@ -307,8 +307,7 @@ class StaticWeb(object): cgi.escape(env['PATH_INFO']) if self._listings_css: body += ' \n' % \ - ('../' * prefix.count('/'), quote(self._listings_css)) + 'href="%s" />\n' % (self._build_css_path(prefix)) else: body += ' ' not in resp.body) self.assert_('