How do I redirect to a custom URL?

I need one of my website pages to redirect to a custom URL that will cause my installed app to open. In normal JavaScript, I would do something like:

location.replace("myapp://thankyou")

I tried using Corvid with

wixLocation.to("myapp://thankyou") 

but it seems like to() is confined to http, https, mailto and tel.
Is there a way to achieve what I need? SquareSpace has javascript code injection which does what I need, but I prefer to remain on Wix :slight_smile:
Thanks in advance for your help!

Hi,

Please view the supported link patterns for the to() function here .
Since “myapp://” is not on the list, you may need to retrieve a URL with the pattern http(s):// that is able to open up your app upon visit so the function can work as expected.

Best Regards,
Edward | Corvid Team