summaryrefslogtreecommitdiffstats
path: root/hyperkitty
diff options
context:
space:
mode:
authorAamir Khan <syst3m.w0rm@gmail.com>2012-08-09 19:33:34 +0530
committerAamir Khan <syst3m.w0rm@gmail.com>2012-08-09 19:33:34 +0530
commit74444def1e1d726b8415b2b8b7f0915cde48ff8f (patch)
treee00bc5e97e56db91168d64c9c3bbfdeebbf9b35c /hyperkitty
parent3b7438fd3ad38b8ae60369d9dcfa0bbb626fd6a5 (diff)
downloadhyperkitty-74444def1e1d726b8415b2b8b7f0915cde48ff8f.tar.gz
hyperkitty-74444def1e1d726b8415b2b8b7f0915cde48ff8f.tar.xz
hyperkitty-74444def1e1d726b8415b2b8b7f0915cde48ff8f.zip
Issues #18: Fix broken links because URLs were hard coded
Diffstat (limited to 'hyperkitty')
-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'),