From 9a5e0185abb495d6d61f35067060da6b9552869c Mon Sep 17 00:00:00 2001 From: Hailey Date: Sat, 15 Jun 2024 17:43:33 -0700 Subject: [PATCH] use the correct link for sharing --- src/lib/routes/links.ts | 6 +++--- src/screens/StarterPack/StarterPackScreen.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/routes/links.ts b/src/lib/routes/links.ts index a08f8f8899..56b716677b 100644 --- a/src/lib/routes/links.ts +++ b/src/lib/routes/links.ts @@ -46,9 +46,9 @@ export function makeStarterPackLink( rkey?: string, ) { if (typeof starterPackOrName === 'string') { - return `/start/${starterPackOrName}/${rkey}` + return `https://bsky.app/start/${starterPackOrName}/${rkey}` } else { - const rkey = new AtUri(starterPackOrName.uri).rkey - return makeProfileLink(starterPackOrName.creator, 'starter-pack', rkey) + const uriRkey = new AtUri(starterPackOrName.uri).rkey + return `https://bsky.app/start/${starterPackOrName.creator.handle}/${uriRkey}` } } diff --git a/src/screens/StarterPack/StarterPackScreen.tsx b/src/screens/StarterPack/StarterPackScreen.tsx index ff32140fa2..30abe8deef 100644 --- a/src/screens/StarterPack/StarterPackScreen.tsx +++ b/src/screens/StarterPack/StarterPackScreen.tsx @@ -7,7 +7,7 @@ import {useNavigation} from '@react-navigation/native' import {NativeStackScreenProps} from '@react-navigation/native-stack' import {useQueryClient} from '@tanstack/react-query' -import {makeProfileLink} from 'lib/routes/links' +import {makeProfileLink, makeStarterPackLink} from 'lib/routes/links' import {CommonNavigatorParams, NavigationProp} from 'lib/routes/types' import {shareUrl} from 'lib/sharing' import {isWeb} from 'platform/detection' @@ -235,7 +235,7 @@ function Header({ label={_(msg`Share link`)} testID="shareStarterPackLinkBtn" onPress={() => { - shareUrl('https://bsky.app') + shareUrl(makeStarterPackLink(name, rkey)) }}> Share link