mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-27 17:40:08 +00:00
feat: handle missing trailing slashes for console and login (#3490)
* handle calls without trailing slash * build redirect uris correctly * handle missing trailing slash for login * sentry as http middleware * import * fix build origin
This commit is contained in:
@@ -94,5 +94,6 @@ func CreateRouter(login *Login, staticDir http.FileSystem, interceptors ...mux.M
|
||||
router.HandleFunc(EndpointRegisterOrg, login.handleRegisterOrg).Methods(http.MethodGet)
|
||||
router.HandleFunc(EndpointRegisterOrg, login.handleRegisterOrgCheck).Methods(http.MethodPost)
|
||||
router.HandleFunc(EndpointLoginSuccess, login.handleLoginSuccess).Methods(http.MethodGet)
|
||||
router.SkipClean(true).Handle("", http.RedirectHandler(HandlerPrefix+"/", http.StatusMovedPermanently))
|
||||
return router
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user