Remove need for slash at end, but prefer it
This commit is contained in:
parent
e182e4c019
commit
45ffcd853d
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ from project.common.forms import ContactForm
|
||||||
|
|
||||||
def page_view(request, path):
|
def page_view(request, path):
|
||||||
template = None
|
template = None
|
||||||
if path.endswith('/'):
|
if path.endswith('/'): # Strip trailing slash
|
||||||
path = path[:-1]
|
path = path[:-1]
|
||||||
|
|
||||||
path = swap_page(path)
|
path = swap_page(path)
|
||||||
|
|
Reference in a new issue