Yuki Takei 3 лет назад
Родитель
Сommit
0946dd96b5
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      packages/app/src/components/ReactMarkdownComponents/NextLink.tsx

+ 5 - 3
packages/app/src/components/ReactMarkdownComponents/NextLink.tsx

@@ -34,9 +34,11 @@ export const NextLink = ({
   if (isAnchorLink(href)) {
     const to = href.slice(1);
     return (
-      <ScrollLink href={href} to={to} className={className} spy smooth="easeOutQuart" offset={-100} duration={800}>
-        {children}
-      </ScrollLink>
+      <Link href={href} scroll={false}>
+        <ScrollLink href={href} to={to} className={className} smooth="easeOutQuart" offset={-100} duration={800}>
+          {children}
+        </ScrollLink>
+      </Link>
     );
   }