mercurial/hgweb/hgweb_mod.py
changeset 3606 f8589028a7fa
parent 3595 fc34fd58ae7b
child 3610 44cd1eb72fd7
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -708,7 +708,7 @@ class hgweb(object):
                     return '%s%s%s' % (url.startswith('/') and '/' or '',
                                        inner, tl)
 
-                root = normurl(req.env.get('REQUEST_URI', '').split('?', 1)[0])
+                root = normurl(urllib.unquote(req.env.get('REQUEST_URI', '').split('?', 1)[0]))
                 pi = normurl(req.env.get('PATH_INFO', ''))
                 if pi:
                     # strip leading /