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