Badges do not display

I’m trying to put in badges in my repository, but they do not display. I mean by that, that it can’t find the specific svg file or my link to it is wrong.

I have one project where badges are enabled and working with this as url for pipeline:
https://domain/%{project_path}/badges/%{default_branch}/pipeline.svg

When I use the same url in my current project it can’t find the image.
When looking through the documentation of badges it describes somewhere to use the namespace in the url.
https://domain/namespace/%{project_path}/badges/%{default_branch}/pipeline.svg
When doing this it still doesn’t working, neither in my older repo when changing the url.

Is there anything i’m missing?
gitlab version: 14.8.2