Project URL using ID

Is it possible create a URL to the web page of a GitLab project using the project ID instead of the project slug (the path name)?

Normally projects use their path name in their URL, like this:

https://gitlab.com/gitlab-examples/ci-debug-trace

I would like to instead use something like this:

https://gitlab.com/group/349181/project/1796893

Reason

I want to do this to avoid that links break if projects change their path. For example, issue references for other projects in commit messages use these URL:s.

GitLab version

GitLab Community Edition 13.10.2

Stack Overflow question

1 Like