stash
This commit is contained in:
parent
7d9f67a77a
commit
3299c97392
13 changed files with 1407 additions and 327 deletions
9
frontend/src/handle-url.js
Normal file
9
frontend/src/handle-url.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Embeds/extracts a handle in a URL path segment. See docs/federation.md's "Embedding a
|
||||
// `#`-bearing handle in a URL": `#` starts a URI's fragment component, so a group handle
|
||||
// (`#name@domain`) or classification handle (`origin#type:name`) can't appear unescaped in a
|
||||
// path segment. `+` stands in for `#` there instead of the usual %23 - safe to reverse
|
||||
// unambiguously because every field a handle is built from is already required to exclude `+`
|
||||
// (see federation.md's Reserved characters). The canonical handle itself never changes; this only
|
||||
// affects how one gets embedded in, or read back out of, a URL path segment.
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue