diff --git a/sites/sefaria/urls.py b/sites/sefaria/urls.py index 4753abb7fb..d9c48c6436 100644 --- a/sites/sefaria/urls.py +++ b/sites/sefaria/urls.py @@ -80,8 +80,8 @@ # Redirects to Wikis etc site_urlpatterns += [ - url(r'^donate/mobile?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/' if x.interfaceLang == 'english' else 'https://donate.sefaria.org/he?c_src=mobile-app')), - url(r'^donate/?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/' if x.interfaceLang == 'english' else 'https://donate.sefaria.org/he')), + url(r'^donate/mobile?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/english?c_src=App' if x.interfaceLang == 'english' else 'https://donate.sefaria.org/he?c_src=App')), + url(r'^donate/?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/english' if x.interfaceLang == 'english' else 'https://donate.sefaria.org/he')), url(r'^wiki/?$', lambda x: HttpResponseRedirect('https://github.com/Sefaria/Sefaria-Project/wiki')), url(r'^developers/?$', lambda x: HttpResponseRedirect('https://github.com/Sefaria/Sefaria-Project/wiki#developers')), url(r'^request-a-text/?$', lambda x: HttpResponseRedirect('https://goo.gl/forms/ru33ivawo7EllQxa2')), @@ -90,7 +90,7 @@ url(r'^faq/?$', lambda x: HttpResponseRedirect('/collections/sefaria-faqs' if x.interfaceLang == 'english' else '/collections/%D7%A9%D7%90%D7%9C%D7%95%D7%AA-%D7%A0%D7%A4%D7%95%D7%A6%D7%95%D7%AA-%D7%91%D7%A1%D7%A4%D7%A8%D7%99%D7%90')), url(r'^help/?$', lambda x: HttpResponseRedirect('/collections/sefaria-faqs' if x.interfaceLang == 'english' else '/collections/%D7%A9%D7%90%D7%9C%D7%95%D7%AA-%D7%A0%D7%A4%D7%95%D7%A6%D7%95%D7%AA-%D7%91%D7%A1%D7%A4%D7%A8%D7%99%D7%90')), url(r'^gala/?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/event/sefarias-10-year-anniversary-gala/e486954')), - url(r'^give/(?P[a-zA-Z0-9]+)/?$', lambda x, campaign_id: HttpResponseRedirect(f'https://donate.sefaria.org/give/550774/#!/donation/checkout?c_src={campaign_id}')), + url(r'^give/(?P[a-zA-Z0-9]+)/?$', lambda x, channel_source: HttpResponseRedirect(f'https://donate.sefaria.org/give/550774/#!/donation/checkout?c_src={channel_source}')), url(r'^give/?$', lambda x: HttpResponseRedirect(f'https://donate.sefaria.org/give/550774/#!/donation/checkout?c_src=mu')), url(r'^giving/?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/give/524771/#!/donation/checkout')), url(r'^jfn?$', lambda x: HttpResponseRedirect('https://www.sefaria.org/sheets/60494')), diff --git a/static/js/StaticPages.jsx b/static/js/StaticPages.jsx index fe61a86595..bd59a652ba 100644 --- a/static/js/StaticPages.jsx +++ b/static/js/StaticPages.jsx @@ -1437,8 +1437,8 @@ const DonatePage = () => ( heText="" enButtonText="Donate Now" heButtonText="" - enButtonUrl="https://donate.sefaria.org/" - heButtonUrl="https://donate.sefaria.org/he" + enButtonUrl="https://donate.sefaria.org/english?c_src=waystogive" + heButtonUrl="https://donate.sefaria.org/he?c_src=waystogive" borderColor="#004E5F" />, ( heText="" enButtonText="Join the Sustainers" heButtonText="" - enButtonUrl="https://donate.sefaria.org/sustainers" - heButtonUrl="https://donate.sefaria.org/sustainershe" + enButtonUrl="https://donate.sefaria.org/sustainers?c_src=waystogive" + heButtonUrl="https://donate.sefaria.org/sustainershe?c_src=waystogive" borderColor="#97B386" />, ( heText="" enButtonText="Sponsor a Day of Learning" heButtonText="" - enButtonUrl="https://donate.sefaria.org/sponsor" - heButtonUrl="https://donate.sefaria.org/sponsorhe" + enButtonUrl="https://donate.sefaria.org/sponsor?c_src=waystogive" + heButtonUrl="https://donate.sefaria.org/sponsorhe?c_src=waystogive" borderColor="#4B71B7" />, ( heText="" enButtonText="Join Now or Learn More" heButtonText="" - enButtonUrl="https://donate.sefaria.org/campaign/giving-circles/c557214" + enButtonUrl="https://donate.sefaria.org/campaign/giving-circles/c557214?c_src=waystogive" heButtonUrl="" borderColor="#7C416F" /> @@ -1493,7 +1493,7 @@ const DonatePage = () => ( , @@ -1605,7 +1605,7 @@ const DonatePage = () => ( diff --git a/templates/static/the-sefaria-story.html b/templates/static/the-sefaria-story.html index 00300fdccc..12c67e71a2 100644 --- a/templates/static/the-sefaria-story.html +++ b/templates/static/the-sefaria-story.html @@ -43,7 +43,7 @@