Skip to content
Snippets Groups Projects
Commit b75d6537 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Use HTTP_REFERER instead of unset HTTP_ORIGIN for newsletter form get_success_url.

parent 0e8d9f04
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment