Unable to create dynamic build status badge with placeholder

I am using gitlab.com. I would like to add a build status badge to our repository’s README.md and have the build status reflect dynamically for both the current project and the current branch.

I expected the placeholder functionality described in the link below would make it possible to display at least the project path dynamically, but the placeholder variable string (%{project_path}) is not replaced when the README.md loads.

Link Describing Placeholders: https://docs.gitlab.com/ee/user/project/badges.html#placeholders

I have just two questions.

  1. Can I use the project path placeholder variable to generate the current project’s path from my README? If so, an example would be appreciated. This example does not work, as the variable is not replaced:

pipeline status

  1. Can I create a dynamic build status link for each branch, using a placeholder? There seems to have been some work in progress on this, but I am unable to find the story after gitlab-ce was moved to gitlab-ee: https://gitlab.com/gitlab-org/gitlab-foss/issues/58416.




Curious to know if anyone had any feedback on this. Thanks!