When you create a button of type=star and count=true, then it displays the number 'star gazers' next to the button, with a hyperlink to the GitHub Stargazers page. However as of the 30th June 2026 all repositories now return a 404 for /stargazers.
Example:
https://ghbtns.com/github-btn.html?user=twbs&repo=bootstrap&type=star&count=true
Href:
https://github.com/twbs/bootstrap/stargazers
There is a blog post about this change here:
https://github.blog/changelog/2026-06-30-upcoming-access-restrictions-to-public-api-endpoints-and-ui-views/
I suspect the fix is just to remove the href.
When you create a button of
type=starandcount=true, then it displays the number 'star gazers' next to the button, with a hyperlink to the GitHub Stargazers page. However as of the 30th June 2026 all repositories now return a 404 for /stargazers.Example:
https://ghbtns.com/github-btn.html?user=twbs&repo=bootstrap&type=star&count=true
Href:
https://github.com/twbs/bootstrap/stargazersThere is a blog post about this change here:
https://github.blog/changelog/2026-06-30-upcoming-access-restrictions-to-public-api-endpoints-and-ui-views/
I suspect the fix is just to remove the href.