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 548d80ea..d938ef58 100644 --- a/news/urls.py +++ b/news/urls.py @@ -4,11 +4,11 @@ (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-54-g00ecf