From c887cf711e69dbe7ff5d61b87b1aa8e851bf46de Mon Sep 17 00:00:00 2001 From: Trong Huu Nguyen Date: Thu, 31 Aug 2023 10:59:04 +0200 Subject: [PATCH] fix(handler/sso/server): wildcard redirects to default url --- pkg/handler/handler_sso_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/handler/handler_sso_server.go b/pkg/handler/handler_sso_server.go index eb3f4f8..cafa0df 100644 --- a/pkg/handler/handler_sso_server.go +++ b/pkg/handler/handler_sso_server.go @@ -44,7 +44,7 @@ func (s *SSOServer) LogoutLocal(w http.ResponseWriter, r *http.Request) { s.Standalone.LogoutLocal(w, r) } -// Wildcard returns HTTP 404 Not Found. +// Wildcard redirects unhandled requests to the default redirect URL. func (s *SSOServer) Wildcard(w http.ResponseWriter, r *http.Request) { - http.NotFound(w, r) + http.Redirect(w, r, s.Config.SSO.ServerDefaultRedirectURL, http.StatusFound) }