web: "More Info" link describes the same file that the "file" link points to, rather...
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 5 Dec 2008 22:05:02 +0000 (15:05 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 5 Dec 2008 22:05:02 +0000 (15:05 -0700)
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

index 9df9df863613ce74a8cbceee21def3d70bdd8747..c00e0fa5c034a4f14b97675995b5b451060c7837 100644 (file)
@@ -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