Please follow the following template when posting a bug, make sure you’ve searched the bug reports category to avoid any duplicates!
Description of the bug
When “Copy Card link”, SN generate a link like supernotes:/?preview=xxxx, not supernotes://....
Device, App & Version
e.g. iPhone iOS App v3.0.2 or Microsoft Surface Windows App v3.1.3
SN version 3.1.4
Mac OS 14.5 (M1)
Steps to reproduce
A step-by-step instruction to easily replicate the bug. If you are not able to replicate please mention what you were doing on the app before the bug appeared.
CMD+I interact with the card
Copy Card Link
Paste to another app (paste to card is fine, SN can recognize the card link)
Screenshots / Screen Recording
Please post a screenshot here or a even better a link to a screen recording. If the bug revolves around sensitive information, or if you would just like to talk to the team directly please contact us using the in-app ‘Chat with us’ messenger.
Thanks for the report! However this is not actually a bug. Unlike a web link with e.g. https://, currently Supernotes protocol links do not contain a domain / hostname. They only include the intended path within the app. As such, they only have the single forward slash (/) which indicates the beginning of the path. The structure is like so:
protocol:{//domain}{/path}
As no domain is included, the preceding // that specifies “this is a domain” is not included either, as dictated by the spec.
Thank you for the detailed explanation. I understand that the double slashes (//) typically indicate the presence of a domain or authority component, and that Supernotes URIs do not include a domain, hence the single slash.
The reason I initially raised this question was due to an observation: when using URIs with double slashes (//), some applications automatically recognize them as links. This seemed like it could potentially enhance interoperability.
Here are the results from my tests:
• In Todoist, a link with double slashes (//) is automatically recognized as a URI, whereas a single slash link is not. However, using the markdown format, both links will open Supernotes.
• In TickTick, neither the single slash nor the double slash link is automatically recognized as a link, but both will open Supernotes using the markdown format.
• In Notion, neither URI format (single or double slashes) will open Supernotes.
• In Evernote, neither URI format will open Supernotes.
Given these results, it appears that optimizing the URI to include double slashes does not provide significant benefits in terms of interoperability or functionality. I just wanted to share these findings for your reference.
Thanks @tomaxapp, that’s actually very useful to know. Interesting to see which apps try to respect custom schemes.
Although you note that this probably won’t make much of a difference, since you’ve also found at least one app where :// would’ve improved things, we will have a think about this