Files
anonymous_github/public
tdurieux 7ace730960 fix: fall back to default branch when resolving relative image URLs
The Anonymize form's preview built the readme baseUrl as
"https://github.com/<owner>/<repo>/raw/<source.branch>/". When the
form rendered before the branch field had populated (initial load,
or while waiting on getBranches), the URL became ".../raw//" and
the browser collapsed the empty segment, fetching ".../raw/<file>"
instead of ".../raw/<branch>/<file>". Relative <img src="./X">
references then 404'd against a path with no branch — exactly the
"branch missing" pattern in #407.

Fall back to details.defaultBranch (then "main") so the base URL is
always well-formed.

Fixes #407.
2026-05-04 12:01:56 +02:00
..
wip
2026-05-04 11:30:42 +02:00
2024-04-05 01:02:41 +01:00
2021-08-14 05:29:31 +02:00
2021-04-26 06:37:18 +02:00
2026-04-24 15:25:23 +02:00
2021-03-19 10:23:46 +01:00