From 4f35b3b6229cf66abc47869b8a0ec02a7811b2c1 Mon Sep 17 00:00:00 2001 From: Karl Johan Grahn Date: Mon, 16 Dec 2024 19:16:03 +0100 Subject: [PATCH] update --- pkg/kube/wrappers/routeWrapper.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/kube/wrappers/routeWrapper.go b/pkg/kube/wrappers/routeWrapper.go index b656652a..ce9734c1 100644 --- a/pkg/kube/wrappers/routeWrapper.go +++ b/pkg/kube/wrappers/routeWrapper.go @@ -49,7 +49,7 @@ func (rw *RouteWrapper) getHost() string { } func (rw *RouteWrapper) getRouteSubPath() string { - return rw.Route.Spec.EscapedPath() + return rw.Route.Spec.Path } func (rw *RouteWrapper) hasService() (string, bool) { @@ -106,9 +106,12 @@ func (rw *RouteWrapper) GetURL(forceHttps bool, healthEndpoint string) string { } else { URL = rw.getHost() // Fallback for normal Host } + log.Info(fmt.Sprintf("URL: %s", URL)) // Convert url to url object u, err := url.Parse(URL) + log.Info(fmt.Sprintf("u.Path: %s", u.Path)) + log.Info(fmt.Sprintf("rw.getRouteSubPath(): %s", rw.getRouteSubPath())) if err != nil { log.Info(fmt.Sprintf("URL parsing error in getURL() :%v", err))