wapi/wui: add a trailing slash to the targets of hyperlinks of children of the current directory when those targets are directories

This is intended to fix #458 '"other representations" broken in webish ui'.
This commit is contained in:
Zooko O'Whielacronx 2008-06-10 19:59:38 -07:00
parent 7a5fc8ef8a
commit 65618ba5a2

View File

@ -500,7 +500,7 @@ class DirectoryAsHTML(rend.Page):
elif IDirectoryNode.providedBy(target):
# directory
uri_link = "/uri/" + urllib.quote(target.get_uri())
uri_link = "/uri/" + urllib.quote(target.get_uri()) + "/"
ctx.fillSlots("filename",
T.a(href=uri_link)[html.escape(name)])
if target.is_readonly():