mirror of
https://github.com/tooot-app/app
synced 2025-02-25 08:07:57 +01:00
Fix some weird link
This commit is contained in:
parent
6488a8f7bd
commit
d2bf27a85a
@ -123,14 +123,15 @@ const openLink = async (
|
||||
|
||||
loadingLink = false
|
||||
switch (getSettingsBrowser(store.getState())) {
|
||||
// Some links might end with an empty space at the end that triggers an error
|
||||
case 'internal':
|
||||
await WebBrowser.openBrowserAsync(url, {
|
||||
await WebBrowser.openBrowserAsync(encodeURI(url), {
|
||||
dismissButtonStyle: 'close',
|
||||
enableBarCollapsing: true
|
||||
})
|
||||
break
|
||||
case 'external':
|
||||
await Linking.openURL(url)
|
||||
await Linking.openURL(encodeURI(url))
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user