mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
portico_error_pages: Collect zerver error pages into a folder.
Tested `link_does_not_exist.html`, `404.html` and `unsupported_browser` pages render correctly.
This commit is contained in:
@@ -184,7 +184,11 @@ def self_hosting_auth_redirect_endpoint(
|
||||
except ResourceNotFoundError:
|
||||
return render(request, "404.html", status=404)
|
||||
except RemoteRealmServerMismatchError:
|
||||
return render(request, "zerver/remote_realm_server_mismatch_error.html", status=403)
|
||||
return render(
|
||||
request,
|
||||
"zerver/portico_error_pages/remote_realm_server_mismatch_error.html",
|
||||
status=403,
|
||||
)
|
||||
|
||||
return HttpResponseRedirect(redirect_url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user