From 65618ba5a26c569935fe4475adb919630f74211d Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Tue, 10 Jun 2008 19:59:38 -0700 Subject: [PATCH] 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'. --- src/allmydata/web/directory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): -- 2.45.2