On 09/06/2025 21:13, Christian Moe wrote:
Charles Choi writes:
- : emacsclient org-protocol:/store-link:/URL/TITLE
This still works, though with a warning to "update your Org Protocol
handler to deal with new-style links".
[...]
- :
javascript:location.href='org-protocol://store-link://'+encodeURIComponent(location.href)
Would think the old-style links would still be supported in the
browser too, but I can't get them to work.
[...]
- : emacsclient org-protocol:/capture:/URL/TITLE/BODY
This works too, but the bookmark after doesn't.
I have added "URL format" to the subject.
First of all, I think, old-style URLs should be mentioned in the new
"History" section. They should not be recommended to new users, but
those, who are upgrading old config, should have a chance to notice this
format as the obsolete one.
Christian, what is your OS and Desktop environment if it is Linux?
Have you tried namely the following?
javascript:location.href='org-protocol://store-link:/'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)
What if you use single or triple slash after org-protocol?
javascript:location.href='org-protocol:/store-link:/'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title);void(0)
Are there messages in browser developer tools console (F12). My guess is
that system handler tries to normalize invalid URL having no port number
between host name with colon "store-link:" and path "/...".