mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user