From 11bedf1c3bc65d70b5601ccfca7cdc3a57a46aa6 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Fri, 14 Oct 2022 07:42:25 +0200 Subject: Use proper error pages instead of always redirecting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/routes.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/routes.php') diff --git a/core/routes.php b/core/routes.php index 02e27c9cfaf..a3fdfafd7bf 100644 --- a/core/routes.php +++ b/core/routes.php @@ -97,6 +97,9 @@ $application->registerRoutes($this, [ ['name' => 'WebAuthn#startAuthentication', 'url' => 'login/webauthn/start', 'verb' => 'POST'], ['name' => 'WebAuthn#finishAuthentication', 'url' => 'login/webauthn/finish', 'verb' => 'POST'], + ['name' => 'Error#error404', 'url' => 'error/404'], + ['name' => 'Error#error403', 'url' => 'error/403'], + // Well known requests https://tools.ietf.org/html/rfc5785 ['name' => 'WellKnown#handle', 'url' => '.well-known/{service}'], -- cgit v1.2.3