diff --git a/src/components/Feed/ArticleCard/ArticleCard.tsx b/src/components/Feed/ArticleCard/ArticleCard.tsx index 930e1a31..c6621624 100644 --- a/src/components/Feed/ArticleCard/ArticleCard.tsx +++ b/src/components/Feed/ArticleCard/ArticleCard.tsx @@ -128,7 +128,7 @@ export const ArticleCard = (props: ArticleCardProps) => { const navigate = useNavigate() const scrollToComments = (event: MouseEvent & { currentTarget: HTMLAnchorElement; target: Element }) => { event.preventDefault() - navigate(`/article/${props.article.slug}`) + navigate(`/${props.article.slug}`) changeSearchParams({ scrollTo: 'comments' }) diff --git a/src/components/NotificationsPanel/NotificationView/NotificationGroup.tsx b/src/components/NotificationsPanel/NotificationView/NotificationGroup.tsx index 9d230261..3679eb67 100644 --- a/src/components/NotificationsPanel/NotificationView/NotificationGroup.tsx +++ b/src/components/NotificationsPanel/NotificationView/NotificationGroup.tsx @@ -50,7 +50,7 @@ export const NotificationGroup = (props: NotificationGroupProps) => { markSeenThread(threadId) const [slug, commentId] = threadId.split('::') - navigate(`/article/${slug}`) + navigate(`/${slug}`) if (commentId) changeSearchParams({ commentId }) }