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