mattermost / mattermost-mobile

Next generation iOS and Android apps for Mattermost in React Native
https://about.mattermost.com/
Apache License 2.0
2.2k stars 1.33k forks source link

Markdown link in the shape of [text](url) written in the web-version of Mattermost couldn't be opened in the app. #7177

Closed Oluwoye closed 1 year ago

Oluwoye commented 1 year ago

Summary

Markdown link in the shape of [text](url) written in the web-version of Mattermost couldn't be opened in the app.

Environment Information

Steps to reproduce

When writing a link in the format of [ŧext](url) on my desktop PC (Ubuntu 22.04.2 LTS) in the web version of Mattermost, the link couldn't be opened by another user and myself in the app. The link does work in the web version of Mattermost on my mobile device as well as on my desktop PC and the system of the other user.

Expected behavior

The linked website should open

Observed behavior (that appears unintentional)

I wrote a link in the Mattermost web-version but it couldn't be opened in the app with the following error message:

"Fehler: Link kann nicht geöffnet werden"

I use the German interface, so I suppose the original message reads something like

"Error: Link couldn't be opened"

The issue was reproduced by a second user on a separate system.

Possible fixes

enahum commented 1 year ago

maybe share the exact text of your input, cause links with that format do work. Just tested.

Oluwoye commented 1 year ago

The link in question was [my personal website](timcech.de)

enahum commented 1 year ago

try adding the protocol, on web the browser defaults to use http as the protocol, not the case on the mobile app.

Oluwoye commented 1 year ago

That did the trick. Thanks.