Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
research-questions
Commits
0e8d76fe
Commit
0e8d76fe
authored
Mar 06, 2014
by
Jean Michel Rouly
Browse files
Redirect invalid filter urls to base_redirect
parent
2311f84f
Changes
1
Hide whitespace changes
Inline
Side-by-side
researchquestions/website/filters/urls.py
View file @
0e8d76fe
...
...
@@ -3,7 +3,9 @@ from django.conf.urls import patterns, include, url
urlpatterns
=
patterns
(
'website.filters.views'
,
#### Available filters
url
(
r
'^class/(?P<class>\w+)$'
,
'filter_class'
,
name
=
'filter_class'
),
url
(
r
'^$'
,
'base_redirect'
),
url
(
r
'^section/(?P<section>\w+)$'
,
'filter_section'
,
name
=
'filter_section'
),
url
(
r
'^section/?$'
,
'base_redirect'
),
url
(
r
'^date$'
,
'filter_date'
,
name
=
'filter_date'
),
url
(
r
'^comments$'
,
'filter_comments'
,
name
=
'filter_comments'
),
...
...
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