aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/pages.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/helpers/pages.tsx')
-rw-r--r--src/utils/helpers/pages.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/helpers/pages.tsx b/src/utils/helpers/pages.tsx
index 24f5503..1f70e8e 100644
--- a/src/utils/helpers/pages.tsx
+++ b/src/utils/helpers/pages.tsx
@@ -1,7 +1,7 @@
import NextImage from 'next/image';
import type { LinksWidgetItemData, PostData } from '../../components';
import type { ArticlePreview, PageLink } from '../../types';
-import { ROUTES } from '../constants';
+import { COMMENTS_SECTION_ID, ROUTES } from '../constants';
export const getUniquePageLinks = (pageLinks: PageLink[]): PageLink[] => {
const pageLinksIds = pageLinks.map((pageLink) => pageLink.id);
@@ -64,7 +64,7 @@ export const getPostsWithUrl = (posts: ArticlePreview[]): PostData[] =>
comments: {
count: meta.commentsCount ?? 0,
postHeading: title,
- url: `${ROUTES.ARTICLE}/${slug}#comments`,
+ url: `${ROUTES.ARTICLE}/${slug}#${COMMENTS_SECTION_ID}`,
},
},
url: `${ROUTES.ARTICLE}/${slug}`,