summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--klaus/templates/base.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/klaus/templates/base.html b/klaus/templates/base.html
index 17d5f63..1952c90 100644
--- a/klaus/templates/base.html
+++ b/klaus/templates/base.html
@@ -31,13 +31,13 @@
<div>
<ul class=branches>
{% for branch in branches %}
- <li><a href="{{ url_for(view, repo=repo.name, rev=branch, path=path) }}">{{ branch }}</a></li>
+ <li><a href="{{ url_for(view, repo=repo.name, rev=branch, path=(path or None)) }}">{{ branch }}</a></li>
{% endfor %}
</ul>
{% if tags %}
<ul class=tags>
{% for tag in tags %}
- <li><a href="{{ url_for(view, repo=repo.name, rev=tag, path=path) }}">{{ tag }}</a></li>
+ <li><a href="{{ url_for(view, repo=repo.name, rev=tag, path=(path or None)) }}">{{ tag }}</a></li>
{% endfor %}
</ul>
{% endif %}