Decode percent-encoded identifiers in URLs

Cloudflare's single-page-application fallback percent-encodes the
path on a fresh load or reload, so `rad:z4V1...` arrives as
`rad%3Az4V1...` and leaks into links and the seed command.

Only identifiers are decoded: revision and path segments stay
encoded, because branch and tag lookups are keyed on the encoded
name.

The seed command needs a second fix: the repo path segment is an
alias when one was used, and `rad seed <alias>` is not valid, the
`rad seed` command only supports RIDs and not aliases.

Co-Authored-By: Guillaume <guillaume.alabre@gmail.com>
This commit is contained in:
Rūdolfs Ošiņš
2026-08-25 14:52:32 +02:00
co-authored by Guillaume
parent ab5aaa0382
commit 8cfcf11a88
3 changed files with 142 additions and 3 deletions
+1 -1
View File
@@ -163,6 +163,6 @@
</Button>
{/if}
<slot name="actions" />
<SeedButton seedCount={repo.seeding} {repoId} />
<SeedButton seedCount={repo.seeding} repoId={repo.rid} />
</div>
</div>