Skip to content

Commit

Permalink
fix missing url encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosentino11 committed Sep 3, 2024
1 parent 7fefab7 commit 9e7bbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9e7bbff

Please sign in to comment.