Commit 437db565 authored by fred's avatar fred

mark slash-less agenda redirect as permanent

parent 7cc570e6
......@@ -32,7 +32,7 @@ urlpatterns = patterns('',
url(r'^actus/agenda/$', 'panikweb.views.agenda', name='agenda'),
url(r'^actus/agenda/(?P<year>[0-9]{4})/(?P<month>[0-9]+)/$',
'panikweb.views.agenda_by_month', name='agenda_by_month'),
url(r'^actus/agenda$', RedirectView.as_view(pattern_name='agenda')),
url(r'^actus/agenda$', RedirectView.as_view(pattern_name='agenda', permanent=True)),
url(r'^actus/archives/$', 'panikweb.search.newsArchives', name='newsArchives'),
url(r'^actus/(?P<slug>[\w,-]+)$', 'panikweb.views.newsitemview', name='newsitem-view'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment