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:

I would like to instead use something like this:


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