My initial need for this project was that I wanted to automatically open certain domains in another browser on iOS.
The redirect rule for the browser is set with Redirect Web.
I know I coud open apps on my mobile phone via URI schemes. The problem was that the redirect url that was given to Hyperweb was always prefixed with https://
so that didn't work.
That's why I wrote a little edge-function that redirects to a URI scheme for me!
- free netlify tier
- no UI
https://redirect-to-uri-scheme.netlify.app/
https://redirect-to-uri-scheme.netlify.app/?scheme=brave&path=open-url?url=https://search.brave.com
Key | Description |
---|---|
scheme |
the URI scheme part before the :// (e.g. brave) |
path |
the URI path part after the :// (e.g. open-url?url=search.brave.com/) which is per default uri-encoded |
encode |
tells if the path should be uri-encoded - set to false if not needed (default: true) |