1
Fork 0

Remove need for slash at end, but prefer it

This commit is contained in:
Jake Howard 2016-04-07 21:56:16 +01:00
parent e182e4c019
commit 45ffcd853d

View file

@ -9,7 +9,7 @@ from project.common.forms import ContactForm
def page_view(request, path):
template = None
if path.endswith('/'):
if path.endswith('/'): # Strip trailing slash
path = path[:-1]
path = swap_page(path)