From b75d65374fa181d9e01b8fc8181a0f6a9f501f20 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson <frjo@xdeb.org> Date: Fri, 14 Sep 2018 10:32:33 +0200 Subject: [PATCH] Use HTTP_REFERER instead of unset HTTP_ORIGIN for newsletter form get_success_url. --- opentech/public/mailchimp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentech/public/mailchimp/views.py b/opentech/public/mailchimp/views.py index 679384d7a..56534258b 100644 --- a/opentech/public/mailchimp/views.py +++ b/opentech/public/mailchimp/views.py @@ -77,7 +77,7 @@ class MailchimpSubscribeView(FormMixin, RedirectView): def get_success_url(self): # Go back to where you came from - return self.request.META['HTTP_ORIGIN'] + return self.request.META['HTTP_REFERER'] def get_redirect_url(self): # We don't know where you came from, go home -- GitLab