]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
wapi/wui: add a trailing slash to the targets of hyperlinks of children of the curren...
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 11 Jun 2008 02:59:38 +0000 (19:59 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 11 Jun 2008 02:59:38 +0000 (19:59 -0700)
This is intended to fix #458 '"other representations" broken in webish ui'.

src/allmydata/web/directory.py

index f0218c470c5c1568c0d5a8a0a148b32d19149641..d9273e073a45d2036f57beadb3248e9939cf34f7 100644 (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():