diff options
author | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-08-09 19:47:56 +0530 |
---|---|---|
committer | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-08-09 19:47:56 +0530 |
commit | 7b8195ee07cc0d9b7076040745424032d5b906b7 (patch) | |
tree | 29bb82a6577799e41d4a414c3c0f1386387f3b75 /hyperkitty | |
parent | 74444def1e1d726b8415b2b8b7f0915cde48ff8f (diff) | |
download | hyperkitty-7b8195ee07cc0d9b7076040745424032d5b906b7.tar.gz hyperkitty-7b8195ee07cc0d9b7076040745424032d5b906b7.tar.xz hyperkitty-7b8195ee07cc0d9b7076040745424032d5b906b7.zip |
Issues #18: Fix broken links because URLs were hard coded
Diffstat (limited to 'hyperkitty')
-rw-r--r-- | hyperkitty/templates/month_view.html | 2 | ||||
-rw-r--r-- | hyperkitty/urls.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hyperkitty/templates/month_view.html b/hyperkitty/templates/month_view.html index 5b7a32e..e8b42bc 100644 --- a/hyperkitty/templates/month_view.html +++ b/hyperkitty/templates/month_view.html @@ -10,7 +10,7 @@ <div class="thread"> <div class="notsaved"> <span class="thread_title"> <a name="{{email.thread_id}}" - href="/thread/{{list_address}}/{{email.thread_id}}"> {{email.subject}} </a> </span> + href="{% url thread threadid=email.thread_id, mlist_fqdn=list_address %}"> {{email.subject}} </a> </span> <span class="thread_date"> {{email.date}}</span> </div> <div class="thread_content"> diff --git a/hyperkitty/urls.py b/hyperkitty/urls.py index 84948ed..f680716 100644 --- a/hyperkitty/urls.py +++ b/hyperkitty/urls.py @@ -31,7 +31,7 @@ urlpatterns = patterns('hyperkitty.views', # Threads url(r'^thread/(?P<mlist_fqdn>.*@.*)/(?P<threadid>.+)/$', - 'thread.thread_index'), + 'thread.thread_index', name='thread'), # Lists |