Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
437db565
Commit
437db565
authored
Apr 18, 2017
by
fred
Browse files
mark slash-less agenda redirect as permanent
parent
7cc570e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb/urls.py
View file @
437db565
...
...
@@ -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'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment