]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
web: fix more info links again
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 5 Dec 2008 22:39:39 +0000 (15:39 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 5 Dec 2008 22:39:39 +0000 (15:39 -0700)
Really, *really* closes #553.

src/allmydata/web/directory.py

index 0032962437fa1b512b64d21386efaaae940db1e3..fc30c9acd23a3f069df5979bf0e8b9d6c42064a3 100644 (file)
@@ -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"])