Permalink
Browse files

urlencode() href for a the link to a child page to handle znodes

with names like "foo:bar".
  • Loading branch information...
Kyle Ambroff
Kyle Ambroff committed Oct 22, 2009
1 parent 49ce780 commit 2055e64eb84116fa6bff88e3a4113cb0067a1007
Showing with 1 addition and 1 deletion.
  1. +1 −1 zktree/templates/zktree/index.html
@@ -76,7 +76,7 @@ <h2>Children ({{znode.stat.numChildren}})</h2>
{% if znode.children %}
<table>
{% for child in znode.children %}
- <tr class="{% cycle 'oddrow' 'evenrow' %}"><td><a href="{{child}}">{{child}}</a></td></tr>
+ <tr class="{% cycle 'oddrow' 'evenrow' %}"><td><a href="{{child|urlencode}}">{{child}}</a></td></tr>
{% endfor %}
</table>
{% else %}

0 comments on commit 2055e64

Please sign in to comment.