X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/271208559f072fb43af1b8ac4f3632a10488d283..ca8f4e8fef80cb603117ed579da8554f503698e5:/src/newsletter/urls.py diff --git a/src/newsletter/urls.py b/src/newsletter/urls.py index 290bb87a5..2d520560d 100644 --- a/src/newsletter/urls.py +++ b/src/newsletter/urls.py @@ -1,15 +1,16 @@ -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # from django.urls import path +from django.views.generic import RedirectView from . import views urlpatterns = [ path('zapisz-sie/', views.subscribe_form, name='subscribe'), - path('zapisz-sie/konkurs/', views.subscribe_form, {"title": "Zapisz się na newsletter Konkursu", "mailing_list": "contest"}, name='subscribe-contest'), + path('zapisz-sie//', views.subscribe_form, name='subscribe'), path('zapis/', views.subscribed, name='subscribed'), - path('potwierdzenie///', - views.confirm_subscription, name='confirm_subscription'), - path('wypisz-sie/', views.unsubscribe_form, name='unsubscribe'), - path('wypisano/', views.unsubscribed, name='unsubscribed'), + path('wypisz-sie/', RedirectView.as_view( + url='https://mailing.mdrn.pl/?p=unsubscribe', + permanent=False, + ), name='unsubscribe'), ]