Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improper encoding with % #151

Open
shookietea opened this issue Jan 4, 2024 · 0 comments
Open

Improper encoding with % #151

shookietea opened this issue Jan 4, 2024 · 0 comments

Comments

@shookietea
Copy link

shookietea commented Jan 4, 2024

Suppose the following:

obsidian://advanced-uri?vault=vaultname=&dailies&mode=append&daily=true&data=test%

This fails, obviously, and is documented https://vinzent03.github.io/obsidian-advanced-uri/concepts/encoding

However, the solution results in an invalid uri and silently fails. This is the case when opening the link directly in Obsidian as well.
obsidian://advanced-uri?vault=vaultname=&dailies&mode=append&daily=true&data=test%25
[test](obsidian://advanced-uri?vault=vaultname=&dailies&mode=append&daily=true&data=test%25)

The documentation mentions that launching from a terminal requires double escaping "%25%25" (the doc incorrectly states "%25%20"), and this does work.
obsidian://advanced-uri?vault=vaultname=&dailies&mode=append&daily=true&data=test%25%25
[test](obsidian://advanced-uri?vault=vaultname=&dailies&mode=append&daily=true&data=test%25%25)

I'm uncertain if this is a bug or outdated documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant