From 97899caf78370d5350ef9c065a531744143dc267 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Fri, 17 Dec 2021 17:27:26 +1100 Subject: [PATCH] Remove URL slash prefix. --- www/conservancy/apps/supporter/urls.py | 4 ++-- www/conservancy/urls.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/conservancy/apps/supporter/urls.py b/www/conservancy/apps/supporter/urls.py index cffbf626..cf24c03c 100644 --- a/www/conservancy/apps/supporter/urls.py +++ b/www/conservancy/apps/supporter/urls.py @@ -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) diff --git a/www/conservancy/urls.py b/www/conservancy/urls.py index c393d457..96a8bf98 100644 --- a/www/conservancy/urls.py +++ b/www/conservancy/urls.py @@ -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')),