Fix redirect to logical path
redirects should in nearly all cases go to a logical path like 'mediagoblin.auth.login' and not to an absolute path like "/auth/login".
This commit is contained in:
parent
e51af0e620
commit
5dbeda8a0f
@ -202,7 +202,7 @@ def resend_activation(request):
|
||||
messages.ERROR,
|
||||
_('You must be logged in so we know who to send the email to!'))
|
||||
|
||||
return redirect(request, "/auth/login")
|
||||
return redirect(request, 'mediagoblin.auth.login')
|
||||
|
||||
if request.user["email_verified"]:
|
||||
messages.add_message(
|
||||
|
Loading…
x
Reference in New Issue
Block a user