fixed stupid bug
All checks were successful
Build and Push Docker Image / Build image (push) Successful in 1m45s

This commit is contained in:
ACoolName 2025-04-09 17:15:02 +03:00
parent a54c905cc7
commit 4ebb402015

View File

@ -397,7 +397,7 @@ func (r *ServerManagerReconciler) GenerateBrowserUrl(s *servermanagerv1alpha1.Se
}
func (r *ServerManagerReconciler) GenerateBrowserSubPath(s *servermanagerv1alpha1.ServerManager) string {
if r.Config.Browser.SubPath == "" {
if r.Config.Browser.SubPath != "" {
return fmt.Sprintf("%s/%s/%s", r.Config.Browser.SubPath, s.Namespace, s.Name)
} else {
return fmt.Sprintf("/%s/%s", s.Namespace, s.Name)