add name for the redirect urls

This commit is contained in:
Thomas Steen Rasmussen 2017-03-10 00:01:14 +01:00
parent 950ae4f2dc
commit 9a8b552915

View file

@ -73,33 +73,36 @@ urlpatterns = [
url( url(
r'^$', r'^$',
CampRedirectView.as_view(), CampRedirectView.as_view(),
kwargs={'page': 'camp_detail'} kwargs={'page': 'camp_detail'},
name='camp_detail_redirect',
), ),
url( url(
r'^program/$', r'^program/$',
CampRedirectView.as_view(), CampRedirectView.as_view(),
kwargs={'page': 'schedule_index'} kwargs={'page': 'schedule_index'},
name='schedule_index_redirect',
), ),
url( url(
r'^info/$', r'^info/$',
CampRedirectView.as_view(), CampRedirectView.as_view(),
kwargs={'page': 'info'} kwargs={'page': 'info'},
name='info_redirect',
), ),
url( url(
r'^sponsors/$', r'^sponsors/$',
CampRedirectView.as_view(), CampRedirectView.as_view(),
kwargs={'page': 'sponsors'} kwargs={'page': 'sponsors'},
name='sponsors_redirect',
), ),
url( url(
r'^villages/$', r'^villages/$',
CampRedirectView.as_view(), CampRedirectView.as_view(),
kwargs={'page': 'village_list'} kwargs={'page': 'village_list'},
name='village_list_redirect',
), ),
# camp specific urls below here # camp specific urls below here