From: Zooko O'Whielacronx Date: Wed, 11 Jun 2008 02:59:38 +0000 (-0700) Subject: wapi/wui: add a trailing slash to the targets of hyperlinks of children of the curren... X-Git-Tag: allmydata-tahoe-1.1.0~13 X-Git-Url: https://git.rkrishnan.org/uri//%22%22?a=commitdiff_plain;h=65618ba5a26c569935fe4475adb919630f74211d;p=tahoe-lafs%2Ftahoe-lafs.git 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'. --- diff --git a/src/allmydata/web/directory.py b/src/allmydata/web/directory.py index f0218c47..d9273e07 100644 --- a/src/allmydata/web/directory.py +++ b/src/allmydata/web/directory.py @@ -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():