Skip to content

Commit 5df672c

Browse files
committed
feat: Kakao 공유 시 웹뷰 상태에 따른 URL 리다이렉트 로직 수정
- Kakao 공유 기능에서 웹뷰 상태일 때, 적절한 URL로 리다이렉트하도록 수정함 - 사용자 경험을 개선하기 위한 작업임
1 parent 0e5b758 commit 5df672c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/web/src/pages/MemeDetailPage/components/MemeShareSheet.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ const MemeShareSheet = ({
3131

3232
const handleKakaoShare = () => {
3333
if (isWebview) {
34-
onShareNative();
34+
const kakaoShareUrl = `kakaolink://send?text=${encodeURIComponent(title)}&image=${encodeURIComponent(imageUrl)}&url=${encodeURIComponent(window.location.href)}`;
35+
window.location.href = kakaoShareUrl;
3536
return;
3637
}
3738

0 commit comments

Comments
 (0)