Skip to content

Commit

Permalink
docs: mention double encoding
Browse files Browse the repository at this point in the history
close #16
  • Loading branch information
Vinzent03 committed Jul 23, 2021
1 parent 342d0d3 commit 26a2aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ A Plugin for [Obsidian](https://obsidian.md)

Schema: `obsidian://advanced-uri?vault=<your-vault>&<parameter>=<value>&<parameter2>=<value2>`

Ensure that your values are properly URI encoded. For example, forward slash characters `/` must be encoded as `%2F` and space characters must be encoded as `%20`.
Ensure that your values are properly URI encoded. Partly even two times. Every parameter value needs to be encoded with `encodeURIComponent()` and the whole URI with `encodeURI()`. For example, forward slash characters `/` must be encoded as `%2F` and space characters must be encoded as `%20`.

This is especially important because an improperly encoded "reserved" character may break the interpretation of the URI. [See here for details](https://en.wikipedia.org/wiki/Percent-encoding)

Expand Down

0 comments on commit 26a2aee

Please sign in to comment.