summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hyperkitty/templates/month_view.html2
-rw-r--r--hyperkitty/urls.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/hyperkitty/templates/month_view.html b/hyperkitty/templates/month_view.html
index 5ba2445..5b7a32e 100644
--- a/hyperkitty/templates/month_view.html
+++ b/hyperkitty/templates/month_view.html
@@ -87,7 +87,7 @@
<ul>
{% for ar_month in value %}
<li>
- <a href="/archives/{{list_address}}/{{key}}/{{ar_month}}"> {{ ar_month|tomonth }} </a>
+ <a href="{% url archives_with_month year=key, mlist_fqdn=list_address, month=ar_month %}"> {{ ar_month|tomonth }} </a>
</li>
{% endfor %}
</ul>
diff --git a/hyperkitty/urls.py b/hyperkitty/urls.py
index e8708d5..84948ed 100644
--- a/hyperkitty/urls.py
+++ b/hyperkitty/urls.py
@@ -23,9 +23,9 @@ urlpatterns = patterns('hyperkitty.views',
# Archives
url(r'^archives/(?P<mlist_fqdn>.*@.*)/(?P<year>\d{4})/(?P<month>\d\d?)/(?P<day>\d\d?)/$',
- 'list.archives'),
+ 'list.archives', name='archives_with_day'),
url(r'^archives/(?P<mlist_fqdn>.*@.*)/(?P<year>\d{4})/(?P<month>\d\d?)/$',
- 'list.archives'),
+ 'list.archives', name='archives_with_month'),
url(r'^archives/(?P<mlist_fqdn>.*@.*)/$',
'list.archives', name='archives'),