[Bug 5943] New: Wrong default staticurl
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Sun Jul 22 09:05:06 UTC 2018
https://bz.mercurial-scm.org/show_bug.cgi?id=5943
Bug ID: 5943
Summary: Wrong default staticurl
Product: Mercurial
Version: 4.6
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: hgweb
Assignee: bugzilla at mercurial-scm.org
Reporter: cedric.krier at b2ck.com
CC: mercurial-devel at mercurial-scm.org
Created attachment 2014
--> https://bz.mercurial-scm.org/attachment.cgi?id=2014&action=edit
Patch: strip trailling slash
With the changeset 0031e972ded2, the staticurl is construct with req.apppath +
'/static/'. But req.apppath may already end with '/' so the url gets two '//'
which makes it point to the root.
I think templater should strip first the trailing '/' in req.apppath before
appending '/static/'.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list