Redirect to /accounts/register relative to the current domain.

This ensures that we don't always send you to hhq.c when you use OpenID.

(imported from commit ab4c4cfa201740fbddcaa2e51bc15bfe977e221d)
This commit is contained in:
Luke Faraone 2013-04-24 12:58:10 -07:00
parent ce1389dc35
commit 3bb3bbb1ee

View File

@ -415,7 +415,9 @@ def handle_openid_errors(request, issue, openid_response=None):
prereg_user.email = google_email
prereg_user.save()
return redirect("".join((
Confirmation.objects.get_link_for_object(prereg_user),
"/",
# Split this so we only get the part after the /
Confirmation.objects.get_link_for_object(prereg_user).split("/", 3)[3],
'?gafyd_name=',
urllib.quote_plus(full_name))))
else: