Skip to content

Fix broken GitHub link in website navbar - #14031

Open
Obila34 wants to merge 1 commit into
explosion:masterfrom
Obila34:fix-navbar-github-link
Open

Fix broken GitHub link in website navbar#14031
Obila34 wants to merge 1 commit into
explosion:masterfrom
Obila34:fix-navbar-github-link

Conversation

@Obila34

@Obila34 Obila34 commented Sep 3, 2026

Copy link
Copy Markdown

Description

Fixes #14030.

The GitHub button in the top right of the spacy.io navbar linked to https://github.com/explosion/spaCy/stargazers, which returns a 404 (GitHub no longer serves the public stargazers page).

Root cause: the navbar button in website/src/components/navigation.js is rendered with react-github-btn and data-show-count="true". The underlying github-buttons widget builds the star-count link by appending /stargazers to the repo URL (see the stargazers_count branch in github-buttons' href logic), so the count portion of the widget pointed at the now-removed page.

Change: remove data-show-count="true" so the widget renders a plain GitHub button that links directly to https://github.com/explosion/spaCy.

Verification: confirmed via curl that https://github.com/explosion/spaCy/stargazers returns 404 while https://github.com/explosion/spaCy returns 200; confirmed in github-buttons 2.22.1 (the version pinned in website/package-lock.json) that the /stargazers suffix is only added for the count link when data-show-count is enabled, so removing the attribute leaves a single link to the repository. The server-rendered fallback anchor (href={github()}) already points to the repo and is unchanged.

This is my first contribution, so the PR also adds my signed contributor agreement (.github/contributors/Obila34.md).

Types of change

Bug fix (website).

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

The GitHub button in the top right of the website navbar is rendered by
react-github-btn with data-show-count enabled. The github-buttons widget
builds the star count link by appending /stargazers to the repo URL, and
GitHub no longer serves that page (it now returns a 404), so the count
link in the navbar was broken.

Remove data-show-count so the navbar renders a plain GitHub button that
links directly to https://github.com/explosion/spaCy.

Also add the signed contributor agreement for Obila34.
Copilot AI lite review requested due to automatic review settings September 3, 2026 19:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃煝 Approval recommended

The change is minimal, matches the stated root cause, and resolves the broken-link behavior without introducing additional risk.

Pull request overview

This PR fixes a broken GitHub link in the spacy.io website navbar by adjusting the react-github-btn configuration so it no longer generates a star-count link to the deprecated /stargazers URL. It also adds the author鈥檚 signed contributor agreement file as required for first-time contributions.

Changes:

  • Remove data-show-count="true" from the navbar GitHub button to prevent generation of the /stargazers link.
  • Add a signed spaCy contributor agreement under .github/contributors/.
File summaries
File Description
website/src/components/navigation.js Disables the GitHub star-count link that was pointing to a 404 by removing data-show-count.
.github/contributors/Obila34.md Adds the contributor agreement document for the new contributor.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

Github link in navbar is broken

2 participants