From 176d1619023e542cf25a9a52cc61df638df8dd67 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 10 Jan 2011 14:43:32 -0600 Subject: Fix old news URLs not redirecting properly Signed-off-by: Dan McGee --- news/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'news') diff --git a/news/urls.py b/news/urls.py index 548d80e..d938ef5 100644 --- a/news/urls.py +++ b/news/urls.py @@ -4,11 +4,11 @@ urlpatterns = patterns('news.views', (r'^$', 'news_list', {}, 'news-list'), (r'^add/$', 'add'), (r'^preview/$', 'preview'), + # old news URLs, permanent redirect view so we don't break all links + (r'^(?P\d+)/$', 'view_redirect'), (r'^(?P[-\w]+)/$', 'view'), (r'^(?P[-\w]+)/edit/$', 'edit'), (r'^(?P[-\w]+)/delete/$', 'delete'), - # old news URLs, permanent redirect view so we don't break all links - (r'^(?P\d+)/$', 'view_redirect'), ) # vim: set ts=4 sw=4 et: -- cgit v1.2.3-24-g4f1b