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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BwMoSbmK77Ph7XaV5YnAdS
This commit is contained in:
shay
2026-08-25 08:28:41 -07:00
co-authored by Claude Opus 5
parent a25ae33f29
commit 9b5a13f26b
@@ -38,7 +38,7 @@ export function ResultScreen({ username, generating, generatedSvg, generateError
// profile README from the repo named exactly after the account. Most people // profile README from the repo named exactly after the account. Most people
// arriving here don't have that repo yet, so offer both paths. // arriving here don't have that repo yet, so offer both paths.
const profileRepo = encodeURIComponent(username) 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 createRepoUrl = `https://github.com/new?name=${profileRepo}&description=${encodeURIComponent('My GitHub profile')}&visibility=public`
const copy = async () => { const copy = async () => {