branch: elpa/hyperdrive
commit e88112f2d2e44b7450450679bff183f33ba9519a
Author: Adam Porter <a...@alphapapa.net>
Commit: Adam Porter <a...@alphapapa.net>

    Fix: (hyperdrive-org-link-follow) Add "hyper:" prefix
---
 hyperdrive-org.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hyperdrive-org.el b/hyperdrive-org.el
index 49eee8f88d..f7d4efafba 100644
--- a/hyperdrive-org.el
+++ b/hyperdrive-org.el
@@ -106,7 +106,9 @@ raw URL, not an Org link."
 (defun hyperdrive-org-link-follow (url &optional _prefix)
   ;; TODO: Do we need to do anything if prefix is used?
   "Follow hyperdrive URL."
-  (hyperdrive-open (hyperdrive-url-entry url)))
+  ;; Add "hyper:" prefix because Org strips the prefix for links that
+  ;; have been configured with `org-link-set-parameters'.
+  (hyperdrive-open (hyperdrive-url-entry (concat "hyper:" url))))
 
 (defun hyperdrive--org-link-goto (target)
   "Go to TARGET in current Org buffer.

Reply via email to