redirect to actual login page

This commit is contained in:
Martin Green 2023-07-10 16:55:09 +02:00
parent 68724a0504
commit b27852c1f3

View File

@ -249,7 +249,7 @@ def expopage(request, path):
# print(" - EXPOPAGES delivering the file: '{}':{} as MIME type: {}".format(request.path, path,getmimetype(path)),flush=True)
if path.startswith("noinfo") and settings.PUBLIC_SITE and not request.user.is_authenticated:
return HttpResponseRedirect(urljoin(reverse("auth_login"), f"?next={request.path}"))
return HttpResponseRedirect(urljoin(reverse("expologin"), f"?next={request.path}"))
if path.startswith("admin/"):
# don't even attempt to handle these sorts of mistakes