Changeset - 97899caf7837
[Not reviewed]
0 2 0
Ben Sturmfels (bsturmfels) - 2 years ago 2021-12-17 06:27:26
ben@sturm.com.au
Remove URL slash prefix.
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
www/conservancy/apps/supporter/urls.py
Show inline comments
...
 
@@ -2,14 +2,14 @@ from django.conf.urls import url
 
from django.views.generic import TemplateView
 
from conservancy.apps.supporter import views as supp_views
 
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)
 
    for basename in ['index', '2015-supporter-appeal', '2016-supporter-appeal']
 
)
 
urlpatterns.append(url(r'', static_views.index))
www/conservancy/urls.py
Show inline comments
...
 
@@ -52,12 +52,12 @@ urlpatterns = [
 
    url(r'^projects', static_views.index),
 
    url(r'^npoacct', static_views.index,
 
                  {'fundraiser_sought' : 'npoacct'}),
 
    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')),
 
    # url(r'^assignment/', include('conservancy.apps.assignment.urls')),
 
]
0 comments (0 inline, 0 general)