diff --git a/backend/init/router/router.go b/backend/init/router/router.go index d7de8d04c..4ef0aee4f 100644 --- a/backend/init/router/router.go +++ b/backend/init/router/router.go @@ -126,8 +126,8 @@ func setWebStatic(rootRouter *gin.RouterGroup) { entrance := authService.GetSecurityEntrance() if entrance != "" { rootRouter.GET("/"+entrance, func(c *gin.Context) { - entrance = authService.GetSecurityEntrance() - if entrance == "" { + currentEntrance := authService.GetSecurityEntrance() + if currentEntrance == "" || currentEntrance != entrance { handleNoRoute(c) return }