Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------


* Title

Double slash in body text not captured in Org Protocol URL

* Description

The presence of the '/' character in query parameter ~body~ for 
~org-protocol://~ is not handled correctly.
Arguably, the '/' has no reserved purpose in the ~body~ parameter so should 
require no percent encoding.

* Steps to Reproduce

1. Have Org Protocol setup in Emacs, with ~org-protocol-default-template-key~ 
defined to a template that processes the ~body~ parameter (%i).
2. Invoke the following Org Protocol request via ~emacsclient~:

   #+begin_src shell
     emacsclient "org-protocol://capture?body=org-protocol://"
   #+end_src

* Expected Result

Double slashes in ~body~ should be preserved in the resulting Org Capture 
window.

* Actual Result

Only one slash appears in the resulting Org Capture window.

* Observation

A un-recommended workaround is to percent encode '/' to %2F. However, this is 
arduous as different platform APIs (Python, Cocoa) when percent encoding URL 
query parameters will treat '/' as having no reserved purpose; they will /not/ 
percent encode '/'.


Emacs  : GNU Emacs 30.1 (build 2, aarch64-apple-darwin24.3.0, NS appkit-2575.40 
Version 15.3.1 (Build 24D70))
of 2025-02-27
Package: Org mode version 9.7.30 (9.7.30-84f18c @ 
/Users/cchoi/.config/emacs/elpa/org-9.7.30/)


—
Charles Y. Choi, Ph.D.
kickingve...@gmail.com






Reply via email to