Skip to content

Commit

Permalink
only allow # for now in hrefs to avoid any confusion about paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hpk42 committed Nov 25, 2024
1 parent 1e0a3f7 commit 33fa73a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src-docs/spec/sendUpdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ The `update` object has the following properties:

- `update.href`: optional string that can be passed as the navigation
location to the webxdc app.
If specified the string must start with `/` and contain only the "path" part
of an URL, without any origin (scheme and domain) parts.
For now, only hash or fragment references are allowed.
Strings must start with `#` and can not contain any
origin, path or query parts.

- `update.document`: optional, name of the document in edit
(eg. the title of a poll or the name of a text in an editor)
Expand Down

0 comments on commit 33fa73a

Please sign in to comment.