Skip to content

Commit bc72a73

Browse files
committed
Fix: 공유 url 수정
1 parent 0204115 commit bc72a73

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

util/shareSNS.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ export const handleShareKakao = () => {
1111
const url = new URL(location.href);
1212
const folderId = url.searchParams.get("folder");
1313

14-
// 새로운 URL로 설정
15-
if (folderId) {
16-
location.href = `https://linkbrary-9-99.vercel.app/share/${folderId}`;
17-
}
18-
1914
if (Kakao.isInitialized()) {
2015
Kakao.Share.sendDefault({
2116
objectType: "feed",
@@ -24,8 +19,8 @@ export const handleShareKakao = () => {
2419
description: "나에게 필요한 링크만 모아 두었어요!",
2520
imageUrl: "https://linkbrary-9-99.vercel.app/images/home_main.png", // 배포 후 실제 도메인으로 변경 필요
2621
link: {
27-
mobileWebUrl: location.href,
28-
webUrl: location.href,
22+
mobileWebUrl: `https://linkbrary-9-99.vercel.app/share/${folderId}`,
23+
webUrl: `https://linkbrary-9-99.vercel.app/share/${folderId}`,
2924
},
3025
},
3126
});

0 commit comments

Comments
 (0)