Use id instead of slug

This commit is contained in:
Hongbo Wu 2022-05-04 12:16:21 +08:00
parent 329efacbe5
commit 2aa0618d28

View file

@ -258,7 +258,7 @@ export function HomeFeedContainer(props: HomeFeedContainerProps): JSX.Element {
const username = viewerData?.me?.profile.username
if (username) {
setActiveCardId(item.node.id)
router.push(`/${username}/${item.node.slug}`)
router.push(`/${username}/${item.node.id}`)
}
break
case 'showOriginal':