Can't add links to note


What I did:
Use cmd-k to add link (and mouse click/enter/escape to try to exit the add link-menu)

What happened:
Link is not added. The text selected for hyperlink is simply text.

What I expected:
Link added to text.

Things that might be helpful to know (Agenda version, OS and model, etc):
Monterey 12.5.1
Agenda 14.1.1
M1 Pro MacBook Pro

I think I just stumbled on the solution: OneNote links are dirty, and I was trying to link to OneNote. I added a different link with no problem and then took at look at the link. After the full https:// link a second link is part of the full URL that begins with onenote:https://

Effectively this is:
https://sharepoint.example.com/very-long-examplelink
onenote:https://sharepoint.example.com/examplelink-slightly-different-very-long

It would be nice if Agenda could handle this without having to manually massage OneNote links every time.

Thanks for the feedback, we’ll see if this can be done.

Just to check btw, what is the link that is copied from Onenote, the one with onenote:https://sharepoint etc? And you want to strip off the onenote: prefix, correct?

Update: I URL encoded the quotation marks, and now I’m good.

Just adding to this, Agenda won’t let me add links to OmniFocus script URLs, but I’m not sure why.

Example: omnifocus://localhost/omnijs-run?script=Task.byIdentifier%28"mbZejjzd3Au"%29.markComplete%28%29

My links directly to tasks can be inserted, such as omnifocus:///task/mbZejjzd3Au. So it isn’t the prefix that seems to be the problem. Maybe the parentheses that I URL encoded to avoid issues with Markdown insertion? I’m not sure.

Thanks!

Could the problem be the quotation marks? Probably need to encode those too.

1 Like

Yup, that was it. I updated my post to clarify, too. Thanks!

1 Like

Yes, that is correct.

Here is an actual example:

Thanks, we’ll take a look