From 9e7bbffbca554feca73f357032a7d0fabe580c1a Mon Sep 17 00:00:00 2001 From: Joseph Cosentino Date: Mon, 2 Sep 2024 21:04:31 -0700 Subject: [PATCH] fix missing url encoding --- app/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index.tsx b/app/index.tsx index 6e3dbfd..82d395c 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -10,7 +10,7 @@ import Header from '@/components/Header'; export default function Index() { const router = useRouter(); const handleStorySelected = useCallback((story: SelectedStory) => { - router.push(`/detail?url=${encodeURIComponent(story.url)}&story=${story.story}&title=${story.title}&id=${story.id}`); + router.push(`/detail?url=${encodeURIComponent(story.url)}&story=${encodeURIComponent(story.story)}&title=${encodeURIComponent(story.title)}&id=${encodeURIComponent(story.id)}`); }, []); const scheme = useColorScheme();