From bf4e5289b743406ed221e299514bd8d71ae739b1 Mon Sep 17 00:00:00 2001 From: Karl Johan Grahn Date: Mon, 16 Dec 2024 21:35:33 +0100 Subject: [PATCH] update --- pkg/kube/wrappers/routeWrapper.go | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pkg/kube/wrappers/routeWrapper.go b/pkg/kube/wrappers/routeWrapper.go index 5f9d09bd..1c972fc3 100644 --- a/pkg/kube/wrappers/routeWrapper.go +++ b/pkg/kube/wrappers/routeWrapper.go @@ -119,22 +119,15 @@ func (rw *RouteWrapper) GetURL(forceHttps bool, healthEndpoint string) string { u.Path = healthEndpoint } else { // Append subpath - log.Info(fmt.Sprintf("u.EscapedPath(): %s", u.EscapedPath())) - log.Info(fmt.Sprintf("rw.getRouteSubPath(): %s", rw.getRouteSubPath())) - u.Path = path.Join(u.EscapedPath(), rw.getRouteSubPath()) - log.Info(fmt.Sprintf("u.Path: %s", u.Path)) + u.Path = path.Join(u.Path, rw.getRouteSubPath()) // Find pod by backtracking route -> service -> pod healthEndpoint, exists := rw.tryGetHealthEndpointFromRoute() // Health endpoint from pod successful if exists { - log.Info(fmt.Sprintf("u.EscapedPath(): %s", u.EscapedPath())) - log.Info(fmt.Sprintf("healthEndpoint: %s", healthEndpoint)) - u.Path = path.Join(u.EscapedPath(), healthEndpoint) - log.Info(fmt.Sprintf("u.Path: %s", u.Path)) + u.Path = path.Join(u.Path, healthEndpoint) } } - log.Info(fmt.Sprintf("u.String(): %s", u.String())) - return u.String() + return url.PathUnescape(u.String()) }