appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Feature] Add support in `navigateTo` function for generic protocols

Open nidhi-nair opened this issue 3 years ago • 4 comments

Summary

A user would like to navigate to a locally available page on obsidian. Since our navigateTo function does not recognize such protocols, the navigation forcefully prepends https to the URL. We should allow a more generous validation for URLs.

Front logo Front conversations

nidhi-nair avatar Jun 02 '21 17:06 nidhi-nair

I have another use-case, and several new protocols that I would like to add to this request. FileMaker Pro previously used fmp:// for all files, but recently added the version number. So now there is fmp18://, fmp19://, etc. They also use fmnet:// for connecting to hosted files. https://www.seedcode.com/filemaker-18-fmp-urls/

Perhaps the app definition could store a list of allowed protocols to treat as clickable links. This would be similar to the list of allowed file extensions for the File-Picker widget, but at the app level for protocols.

I've noticed standard https:// urls are automatically converted to clickable links in some places. If this functionality could be combined with a list of allowed protocols, it would greatly increase compatibility for integrating with other platforms. This would allow us to call up other apps and pass parameters to any new app/protocol, even local ones we create.

GreenFlux avatar Aug 20 '21 01:08 GreenFlux

I also have use cases that rely on custom protocols, the prepending of https and/or stripping of the semicolon makes that impossible.

samlander25 avatar Oct 19 '22 14:10 samlander25

A user on Discord requested support for sms:// https://discord.com/channels/725602949748752515/1048442331130494986/1048442331130494986

We should add support for app URI schemes so that navigation works as expected on phones.

bharath31 avatar Dec 06 '22 06:12 bharath31

@satbir121 @bharath31 , we're seeing a lot more requests for other protocols lately in Discord. And it's leading to a lot of support threads, troubleshooting why these protocols are not working. https://discord.com/channels/725602949748752515/1060004966837788784

It's mostly for tel:// and sms:// at this point, but it would be great if we could solve for this in a way that enables generic protocols as well.

Maybe we can have a few protocols that are allowed by default, then an option to enable all, or specify your own-- similar to the allowed file types dropdown in the FilePicker widget.

GreenFlux avatar Jan 04 '23 11:01 GreenFlux

@GreenFlux thanks for flagging! I'm bumping the priority up.

bharath31 avatar Jan 18 '23 06:01 bharath31