diff --git a/internal/contracts/manager.go b/internal/contracts/manager.go index 3d2388c527..03fb8181ce 100644 --- a/internal/contracts/manager.go +++ b/internal/contracts/manager.go @@ -257,7 +257,7 @@ func (cm *contractManager) resolveInvokeContractRequest(ctx context.Context, req func (cm *contractManager) addContractURLs(httpServerURL string, api *core.ContractAPI) { if api != nil { // These URLs must match the actual routes in apiserver.createMuxRouter()! - baseURL := fmt.Sprintf("%s/namespaces/%s/apis/%s", httpServerURL, api.Namespace, api.Name) + baseURL := fmt.Sprintf("%s/namespaces/%s/apis/%s", httpServerURL, cm.namespace, api.Name) api.URLs.OpenAPI = baseURL + "/api/swagger.json" api.URLs.UI = baseURL + "/api" }