links-minor-fixes
This commit is contained in:
parent
a2514735f9
commit
b909f83411
|
@ -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'
|
||||
})
|
||||
|
|
|
@ -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 })
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user