From 21d88a0cba84491dab0ba8d470d22e3358d880d0 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Fri, 5 Dec 2008 15:39:39 -0700 Subject: [PATCH] web: fix more info links again Really, *really* closes #553. --- src/allmydata/web/directory.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/allmydata/web/directory.py b/src/allmydata/web/directory.py index 00329624..fc30c9ac 100644 --- a/src/allmydata/web/directory.py +++ b/src/allmydata/web/directory.py @@ -532,8 +532,7 @@ class DirectoryAsHTML(rend.Page): ctx.fillSlots("size", "?") - text_plain_url = "%s/file/%s/@@named=/foo.txt" % (root, quoted_uri) - info_link = "%s?t=info" % nameurl + info_link = "%s/uri/%s?t=info" % (root, quoted_uri) elif IFileNode.providedBy(target): dlurl = "%s/file/%s/@@named=/%s" % (root, quoted_uri, nameurl) @@ -544,8 +543,7 @@ class DirectoryAsHTML(rend.Page): ctx.fillSlots("size", target.get_size()) - text_plain_url = "%s/file/%s/@@named=/foo.txt" % (root, quoted_uri) - info_link = "%s?t=info" % nameurl + info_link = "%s/uri/%s?t=info" % (root, quoted_uri) elif IDirectoryNode.providedBy(target): # directory @@ -558,7 +556,7 @@ class DirectoryAsHTML(rend.Page): dirtype = "DIR" ctx.fillSlots("type", dirtype) ctx.fillSlots("size", "-") - info_link = "%s/?t=info" % nameurl + 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"]) -- 2.45.2