Fix submission page bug in subdomain
This commit is contained in:
parent
65eb49a840
commit
9a208ca108
2 changed files with 6 additions and 2 deletions
|
@ -114,5 +114,6 @@ class SubdomainMiddleware(object):
|
|||
reverse("auth_login") + "?next=" + urlquote(request.path)
|
||||
)
|
||||
except ObjectDoesNotExist:
|
||||
pass
|
||||
scheme = "https" if settings.DMOJ_SSL > 0 else "http"
|
||||
return HttpResponseRedirect(scheme + "://" + site)
|
||||
return self.get_response(request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue