From 9b5a13f26bbe5775b260c1be80e738e7874eeb6f Mon Sep 17 00:00:00 2001 From: shay Date: Tue, 25 Aug 2026 08:28:41 -0700 Subject: [PATCH] fix(frontend): resolve the profile README link against HEAD, not main. The link hardcoded /edit/main/README.md, so anyone whose profile repo still defaults to master got a 404. GitHub resolves HEAD to the default branch, verified against repos where /blob/main/ 404s and /blob/HEAD/ returns 200. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01BwMoSbmK77Ph7XaV5YnAdS --- generator/frontend/src/screens/ResultScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/frontend/src/screens/ResultScreen.tsx b/generator/frontend/src/screens/ResultScreen.tsx index 0776058..ff567ac 100644 --- a/generator/frontend/src/screens/ResultScreen.tsx +++ b/generator/frontend/src/screens/ResultScreen.tsx @@ -38,7 +38,7 @@ export function ResultScreen({ username, generating, generatedSvg, generateError // profile README from the repo named exactly after the account. Most people // arriving here don't have that repo yet, so offer both paths. const profileRepo = encodeURIComponent(username) - const editReadmeUrl = `https://github.com/${profileRepo}/${profileRepo}/edit/main/README.md` + const editReadmeUrl = `https://github.com/${profileRepo}/${profileRepo}/edit/HEAD/README.md` const createRepoUrl = `https://github.com/new?name=${profileRepo}&description=${encodeURIComponent('My GitHub profile')}&visibility=public` const copy = async () => {