2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 12:17:47 +00:00

Fix problem where root collection crashed after previous change

This commit is contained in:
Jarrod Johnson 2013-11-22 17:58:38 -05:00
parent 8913254191
commit 163f96177a

View File

@ -261,7 +261,7 @@ def _assemble_html(responses, resource, querydict, url):
yield '<input type="hidden" name="restexplorerhonorkey" value="">'
yield '<a rel="self" href="%s">%s</a><br>' % (resource, resource)
if url == '/':
pass
iscollection = True
elif resource[-1] == '/':
iscollection = True
yield '<a rel="collection" href="../">../</a><br>'