about summary refs log tree commit diff
path: root/src/view/com/util/Link.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com/util/Link.tsx')
-rw-r--r--src/view/com/util/Link.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx
index 8f94115e1..70ba0df7a 100644
--- a/src/view/com/util/Link.tsx
+++ b/src/view/com/util/Link.tsx
@@ -8,8 +8,8 @@ import {
   TextStyle,
   ViewStyle,
 } from 'react-native'
-import {useStores} from '../../../state'
-import {RootStoreModel} from '../../../state'
+import {useStores, RootStoreModel} from '../../../state'
+import {convertBskyAppUrlIfNeeded} from '../../../lib/strings'
 
 export const Link = observer(function Link({
   style,
@@ -66,6 +66,7 @@ export const TextLink = observer(function Link({
 })
 
 function handleLink(store: RootStoreModel, href: string, longPress: boolean) {
+  href = convertBskyAppUrlIfNeeded(href)
   if (href.startsWith('http')) {
     Linking.openURL(href)
   } else if (longPress) {