From 71fae0db23bb5680921fb40f55bdcd6151a411d7 Mon Sep 17 00:00:00 2001 From: EtienneLescot Date: Sat, 10 Oct 2026 22:59:34 +0200 Subject: [PATCH] fix(website): let links to our own repo send the referrer, so GitHub credits the site --- website/docusaurus.config.ts | 4 +++- website/src/pages/download.tsx | 2 +- website/src/theme/Footer/index.tsx | 16 ++++++++++++---- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 17bb8e9806..f71f654c92 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -648,6 +648,8 @@ export default async function createConfig(): Promise { }, { href: `${REPO_URL}/blob/main/ROADMAP.md`, + // No noreferrer on links to our own repo: GitHub then credits the visit to the site. + rel: "noopener", label: "Roadmap", position: "left", }, @@ -661,7 +663,7 @@ export default async function createConfig(): Promise { type: "html", position: "right", value: - `` + + `` + // GitHub's own mark (Octicons `mark-github`), not a generic code glyph: the item // is one of several in the navbar and the logo is what makes it findable at a // glance. Inline for the same reason as the star above — no widget, no request. diff --git a/website/src/pages/download.tsx b/website/src/pages/download.tsx index 7302926b52..145eaf0652 100644 --- a/website/src/pages/download.tsx +++ b/website/src/pages/download.tsx @@ -206,7 +206,7 @@ function StarPrompt({ starCount, locale }: { starCount: number | null; locale: s OpenScreen is free and MIT licensed. A star on GitHub helps other people find it.

-
+ Star on GitHub {starCount !== null ? ( diff --git a/website/src/theme/Footer/index.tsx b/website/src/theme/Footer/index.tsx index 767b07fe0d..595423ef9c 100644 --- a/website/src/theme/Footer/index.tsx +++ b/website/src/theme/Footer/index.tsx @@ -112,8 +112,10 @@ export default function Footer(): ReactNode { Project
- GitHub - + + GitHub + + Releases @@ -132,10 +134,16 @@ export default function Footer(): ReactNode { Community
- + Contributing - + License (MIT) Discord