From: Zooko O'Whielacronx Date: Fri, 5 Dec 2008 22:05:02 +0000 (-0700) Subject: web: "More Info" link describes the same file that the "file" link points to, rather... X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/file/URI:LIT:krugkidfnzsc4/index.php?a=commitdiff_plain;h=93cd0f58a9a101339626e11d95940d3958e7ea0e;p=tahoe-lafs%2Ftahoe-lafs.git 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 . --- 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