From: Brian Warner Date: Sat, 6 Dec 2008 06:14:12 +0000 (-0700) Subject: web/directory.py: really really fix #553. Unfortunately it's tricky to simulate the... X-Git-Url: https://git.rkrishnan.org/frontends/running.html?a=commitdiff_plain;h=735b3493f160e51c3a1d18b44a581ea37cca9e00;p=tahoe-lafs%2Ftahoe-lafs.git web/directory.py: really really fix #553. Unfortunately it's tricky to simulate the behavior of a brower's relative-url handling in a unit test. --- diff --git a/src/allmydata/web/directory.py b/src/allmydata/web/directory.py index fc30c9ac..23306729 100644 --- a/src/allmydata/web/directory.py +++ b/src/allmydata/web/directory.py @@ -558,8 +558,7 @@ class DirectoryAsHTML(rend.Page): ctx.fillSlots("size", "-") info_link = "%s/uri/%s/?t=info" % (root, quoted_uri) - moreinfourl = "%s/uri/%s?t=info" % (root, quoted_uri) - ctx.fillSlots("info", T.a(href=moreinfourl)["More Info"]) + ctx.fillSlots("info", T.a(href=info_link)["More Info"]) return ctx.tag