From 735b3493f160e51c3a1d18b44a581ea37cca9e00 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 5 Dec 2008 23:14:12 -0700 Subject: [PATCH] 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. --- src/allmydata/web/directory.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.45.2