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:
parent
60bbc46a53
commit
93cd0f58a9
|
@ -560,7 +560,8 @@ class DirectoryAsHTML(rend.Page):
|
||||||
ctx.fillSlots("size", "-")
|
ctx.fillSlots("size", "-")
|
||||||
info_link = "%s/?t=info" % nameurl
|
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
|
return ctx.tag
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue