How make open a link from within a webxdc app?

Hi,

I want to make a webxdc app where user can share links. More precisely to have a list of invite links to other delta chat rooms.

I tried the following using the hello app as the base but the links are working…

<button onclick="window.open('https://i.delta.chat/xxxxxxxxxxxx', '_blank');">Testing button to invite</button>

<a href="https://i.delta.chat/xxxxxxxxxxxx">Testing link to invite</a>

Is this a bug or a (security) feature, that you cannot open links to the outside of the app?

1 Like

this is currently changed, upcoming versions will allow to open a link after it is shown to the user and they confirmed it.

see allow to open all links (asking before with dialog) by adbenitez · Pull Request #4045 · deltachat/deltachat-android · GitHub

2 Likes