From 462020d372b7df55be612d48890ad8cc0e186e72 Mon Sep 17 00:00:00 2001 From: katspaugh <381895+katspaugh@users.noreply.github.com> Date: Fri, 24 Jul 2026 08:21:29 +0200 Subject: [PATCH] fix: link to repo root instead of 404ing /stargazers page (#8756) Co-authored-by: Claude Sonnet 5 --- src/renderer/src/components/Landing.tsx | 5 +++-- .../src/components/settings/GeneralSupportSection.tsx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/components/Landing.tsx b/src/renderer/src/components/Landing.tsx index 9e79671f2..a17888bb1 100644 --- a/src/renderer/src/components/Landing.tsx +++ b/src/renderer/src/components/Landing.tsx @@ -26,7 +26,8 @@ type ShortcutItem = { action: string } -const ORCA_STARGAZERS_URL = 'https://github.com/stablyai/orca/stargazers' +// Do not deep-link to /stargazers: GitHub 404s that page for users without repo write access. +const ORCA_GITHUB_URL = 'https://github.com/stablyai/orca' type StarState = 'loading' | 'starred' | 'not-starred' | 'web-fallback' | 'hidden' @@ -72,7 +73,7 @@ function GitHubStarButton({ hasRepos }: { hasRepos: boolean }): React.JSX.Elemen return } if (state === 'web-fallback') { - await window.api.shell.openUrl(ORCA_STARGAZERS_URL) + await window.api.shell.openUrl(ORCA_GITHUB_URL) return } if (state !== 'not-starred') { diff --git a/src/renderer/src/components/settings/GeneralSupportSection.tsx b/src/renderer/src/components/settings/GeneralSupportSection.tsx index 1c7762580..862ae36f6 100644 --- a/src/renderer/src/components/settings/GeneralSupportSection.tsx +++ b/src/renderer/src/components/settings/GeneralSupportSection.tsx @@ -9,7 +9,8 @@ import { SearchableSetting } from './SearchableSetting' import { SettingsSubsectionHeader } from './SettingsFormControls' import { translate } from '@/i18n/i18n' -const ORCA_STARGAZERS_URL = 'https://github.com/stablyai/orca/stargazers' +// Do not deep-link to /stargazers: GitHub 404s that page for users without repo write access. +const ORCA_GITHUB_URL = 'https://github.com/stablyai/orca' type SupportState = | 'loading' @@ -58,7 +59,7 @@ export function GeneralSupportSection({ const handleStarClick = async (): Promise => { if (starState === 'web-fallback') { setStarState('opening-github') - await window.api.shell.openUrl(ORCA_STARGAZERS_URL) + await window.api.shell.openUrl(ORCA_GITHUB_URL) if (mountedRef.current) { setStarState('web-fallback') }