Extra info and % encoding

Extra info and % encoding

Postby john » Wed Dec 25, 2024 9:53 am

Hello.

I would like to type Obsidian URI in Extra info on FCD. As for Obsidian URI, I can't include url in this article, so if you google Osidian URI, you can refer to it right away.

obsidian://action?param1=value&param2=value

The Obsidian URI follows the format above and the value is URI-encoded and contains % characters. However, if you enter that value in Extra info, % will be converted to %25.

For example, I converted # of the value to %23 and entered it into Extra info, but because FCD converts %23 to %2523, the output URI is not recognized.

Please do not allow % to be converted to %25.
john
 

Re: Extra info and % encoding

Postby Ernie » Thu Jan 02, 2025 5:37 pm

Hi. Sorry for the slow response.

My app will encode that character, but it probably should not adjust any URL with a %.
I have logic to not adjust a URL with # in it.

Can you try the following to see if it works? ... notice the "z=#" at the end.

obsidian://action?param1=value&param2=a%23b&z=#

I'm a little reluctant to change the program for fear of breaking other people's URLs that may need the adjustment. Is a workaround for you to just add (say with a formula in Excel) such a fake suffix to make it work?
Ernie
Site Admin
 
Posts: 5062
Joined: Fri Oct 01, 2010 6:12 pm
Location: San Francisco / Taiwan

Return to Comments, Questions and Feedback