Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-johan-grahn committed Dec 16, 2024
1 parent fe15ed7 commit 4f35b3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/kube/wrappers/routeWrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 4f35b3b

Please sign in to comment.