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:
Aman Agrawal
2024-06-05 04:51:07 +00:00
committed by Tim Abbott
parent 1b10bf1921
commit 96dee2b987
22 changed files with 31 additions and 27 deletions

View File

@@ -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)