web/directory.py: really really fix #553. Unfortunately it's tricky to simulate the behavior of a brower's relative-url handling in a unit test.

This commit is contained in:
Brian Warner 2008-12-05 23:14:12 -07:00
parent db7ad6da12
commit 735b3493f1

View File

@ -558,8 +558,7 @@ class DirectoryAsHTML(rend.Page):
ctx.fillSlots("size", "-")
info_link = "%s/uri/%s/?t=info" % (root, quoted_uri)
moreinfourl = "%s/uri/%s?t=info" % (root, quoted_uri)
ctx.fillSlots("info", T.a(href=moreinfourl)["More Info"])
ctx.fillSlots("info", T.a(href=info_link)["More Info"])
return ctx.tag