From 93cd0f58a9a101339626e11d95940d3958e7ea0e Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Fri, 5 Dec 2008 15:05:02 -0700 Subject: [PATCH] web: "More Info" link describes the same file that the "file" link points to, rather than to the file under the same name in this directory It's a subtle but real difference. Fixes #553 -- "More Info" link should point to a file/dir, not a dir+childname . --- src/allmydata/web/directory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/web/directory.py b/src/allmydata/web/directory.py index 9df9df86..c00e0fa5 100644 --- a/src/allmydata/web/directory.py +++ b/src/allmydata/web/directory.py @@ -560,7 +560,8 @@ class DirectoryAsHTML(rend.Page): ctx.fillSlots("size", "-") info_link = "%s/?t=info" % nameurl - ctx.fillSlots("info", T.a(href=info_link)["More Info"]) + moreinfourl = "%s/file/%s?t=info" % (root, quoted_uri) + ctx.fillSlots("info", T.a(href=moreinfourl)["More Info"]) return ctx.tag -- 2.45.2