indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers.
REVISION SUMMARY This is how the hgweb WSGI application does it. Let's make the behavior consistent. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2823 AFFECTED FILES mercurial/hgweb/hgwebdir_mod.py CHANGE DETAILS diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -496,10 +496,6 @@ def config(section, name, default=uimod._unset, untrusted=True): return self.ui.config(section, name, default, untrusted) - url = wsgireq.env.get('SCRIPT_NAME', '') - if not url.endswith('/'): - url += '/' - vars = {} styles, (style, mapfile) = hgweb_mod.getstyle(wsgireq.req, config, self.templatepath) @@ -517,7 +513,7 @@ defaults = { "encoding": encoding.encoding, "motd": motd, - "url": url, + "url": wsgireq.req.apppath + '/', "logourl": logourl, "logoimg": logoimg, "staticurl": staticurl, To: indygreg, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel