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 .
This commit is contained in:
Zooko O'Whielacronx 2008-12-05 15:05:02 -07:00
parent 60bbc46a53
commit 93cd0f58a9
1 changed files with 2 additions and 1 deletions

View 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