No way to pick just the project name for badges

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Problem

I want to add badges to my project / group of projects which would direct viewers to my gitlab page for the repository, where I am publishing documentation.

As described here, pages are published at <groupname>.example.io/<projectname>

However, when i make a badge, i only have access to the project path, so the closest i can get is <groupname>.example.io/%{project_path} which would resolve to <groupname>.example.io/<groupname>/<project_name>

Workaround

I can make my badge on a per-project basis and explicitly enter the project name. I can't do it group-wide

Fix

The easiest way to fix this would be to expose a project name so i can use it in my badge, i.e.

<groupname>.example.io/${project_name}/

Edited Aug 25, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading