diff --git a/pkg/extension/action_url.go b/pkg/extension/action_url.go index 463ac68fd41b7978f82fe21665cdd3e435a6e278..ec03375f840bcd3889cba680e5b9087dd89c7f80 100644 --- a/pkg/extension/action_url.go +++ b/pkg/extension/action_url.go @@ -20,11 +20,13 @@ func NewActionURL(action string) (*ActionURL, error) { } func (u *ActionURL) actionParts() (string, string) { - if u.URL != nil && u.URL.Scheme == "grpc" { - splitPath := strings.Split(strings.TrimLeft(u.Path, "/"), "/") - if len(splitPath) >= 2 { - return splitPath[0], splitPath[1] - } + splitPath := strings.Split(strings.TrimLeft(u.Path, "/"), "/") + if u.URL != nil && u.URL.Scheme == "grpc" && len(splitPath) >= 2 { + return splitPath[0], splitPath[1] + } + // for backwards compatibility + if len(splitPath) == 1 { + return "", splitPath[0] } return "", "" }