API failed: Create an issue link with URL-encoded path target_project_id

Summary

https://docs.gitlab.com/ee/api/issue_links.html#create-an-issue-link

Steps to reproduce

  1. create 2 issues in 2 projects in 1 group
  2. request API to Create an issue link with int target_project_id(such as 123)
  3. request API to Create an issue link with URL-encoded path target_project_id(such as my-group%2Fproject-foo)

What is the current bug behavior?

404 project not found

image

What is the expected correct behavior?

200 success

Possible fixes