Skip to content

docs: fix Django Packages badge URL (escape hyphens)#617

Merged
MartinCastroAlvarez merged 1 commit into
mainfrom
chore/readme-badge-url
May 29, 2026
Merged

docs: fix Django Packages badge URL (escape hyphens)#617
MartinCastroAlvarez merged 1 commit into
mainfrom
chore/readme-badge-url

Conversation

@MartinCastroAlvarez
Copy link
Copy Markdown
Owner

The badge added in #616 rendered as 404 badge not found because the shields.io static-badge path uses - as the segment separator (/badge/<label>-<message>-<color>). Single hyphens inside the message must be doubled.

  • before: /badge/PyPI-django--admin--react-tags-8c3c26.svg → 404 (parser sees 4 segments)
  • after: /badge/PyPI-django--admin--react--tags-8c3c26.svg → 200

Verified with curl -o /dev/null -w '%{http_code}'.

🤖 Generated with Claude Code

Shields.io static badge paths use `-` as the segment separator
(`/badge/<label>-<message>-<color>`), so single hyphens INSIDE the
label or message have to be doubled (`--`). The unescaped URL parsed
as four segments and 404'd.

  before: /badge/PyPI-django--admin--react-tags-8c3c26.svg     → 404
  after:  /badge/PyPI-django--admin--react--tags-8c3c26.svg    → 200

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MartinCastroAlvarez MartinCastroAlvarez merged commit 885e1dd into main May 29, 2026
5 checks passed
@MartinCastroAlvarez MartinCastroAlvarez deleted the chore/readme-badge-url branch May 29, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants