Remove URL slash prefix.

This commit is contained in:
Ben Sturmfels 2021-12-17 17:27:26 +11:00
parent e9df3a0d7e
commit 97899caf78
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
2 changed files with 3 additions and 3 deletions

View file

@ -5,8 +5,8 @@ from conservancy.static import views as static_views
INDEX_VIEW = supp_views.index
urlpatterns = [
url(r'^/?$', INDEX_VIEW),
url(r'^/banners?/?$', TemplateView.as_view(template_name='supporter/banners.html')),
url(r'^$', INDEX_VIEW),
url(r'^banners?/?$', TemplateView.as_view(template_name='supporter/banners.html')),
]
urlpatterns.extend(
url(r'^{}(?:\.html|/|)$'.format(basename), INDEX_VIEW)

View file

@ -55,7 +55,7 @@ urlpatterns = [
url(r'^contractpatch', include('conservancy.apps.contractpatch.urls')),
url(r'^overview', static_views.index),
url(r'^privacy-policy', static_views.index),
url(r'^sustainer', include('conservancy.apps.supporter.urls')),
url(r'^sustainer/', include('conservancy.apps.supporter.urls')),
url(r'^coming-soon.html', static_views.index),
url(r'^fundraiser_data', fundgoal_views.view),
url(r'^ccs-upload/', include('conservancy.apps.ccs_upload.urls', namespace='ccs_upload')),