Scille / parsec-cloud

Open source Dropbox-like file sharing with full client encryption !
https://parsec.cloud
Other
270 stars 40 forks source link

[🚀 | Feature request]: Support clickable Parsec links in emails #6089

Open mmmarcos opened 10 months ago

mmmarcos commented 10 months ago

What you would like to accomplish

Parsec links to files or folders obtained via the GUI are copied as plain text (parsec://...). When pasting it in an email client, like Gmail, it is not rendered as a link.

I would like to be able to paste a link obtained via the GUI in an email and get it rendered as a link.

How the feature should work

Custom URL schemes are often considered unsafe (potential attack vector) and are stripped out by email clients even from href attributes.

A common strategy would be to obtain from the GUI a regular https:// link to Parsec server and then redirect that to parsec://. With this approach:

It should be mention that this strategy is already used for the invitation links sent by email to join an organization.

The only downside is that links will no longer work "offline", but this may be acceptable.

Describe alternatives you have considered

The GUI could propose "offline" (parsec://) and "online" (https://) versions of the same link, but it does not seem right to put the burden on the user.

FirelightFlagboy commented 10 months ago

When pasting it in an email client, like Gmail, it is not rendered as a link.

I would also like to add that if you do the extra miles to add a link via the text editor's tool, It will still not work

FirelightFlagboy commented 10 months ago

Clipboard seems to have 2 "context":

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard https://learn.microsoft.com/en-us/windows/win32/controls/use-rich-edit-clipboard-operations https://dev.to/stegriff/copy-rich-html-with-the-native-clipboard-api-5ah8

vxgmichel commented 10 months ago

The only downside is that links will no longer work "offline", but this may be acceptable

Just a side note: we could still make it work offline by allowing the user to copy and paste the link within the parsec app (I think that's also how it works for invitation at the moment, both http and parsec links are supported).