diff --git a/pkg/action/action.go b/pkg/action/action.go
index 0707e0db1209f267eae6342898681bd5fde6240c..50593c93320a3169c267f2382dfc267e1def2546 100644
--- a/pkg/action/action.go
+++ b/pkg/action/action.go
@@ -28,8 +28,7 @@ func NewURL(action string) (*URL, error) {
 		return nil, err
 	}
 	if actionURL.URL.Scheme == "grpc" {
-		path := strings.TrimLeft(actionURL.Path, "/")
-		splitPath := strings.Split(path, "/")
+		splitPath := strings.Split(strings.TrimLeft(actionURL.Path, "/"), "/")
 		if len(splitPath) < 2 {
 			return nil, errors.Errorf("incorrect action URL, no action id: '%s'", action)
 		}