Skip to content

Commit ba6729f

Browse files
committed
Fix reversed blog navigation links
Swap prevRoute and nextRoute for blog posts to fix navigation direction. Blog posts are ordered newest to oldest, so the traversal order is reversed from chronological order. - Previous link now correctly points to older posts - Next link now correctly points to newer posts This only affects blog posts, other sections remain unchanged. Fixes #7844
1 parent 73d3415 commit ba6729f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Layout/Page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export function Page({
9696
{!isBlogIndex && (
9797
<DocsPageFooter
9898
route={route}
99-
nextRoute={nextRoute}
100-
prevRoute={prevRoute}
99+
nextRoute={section === 'blog' ? prevRoute : nextRoute}
100+
prevRoute={section === 'blog' ? nextRoute : prevRoute}
101101
/>
102102
)}
103103
</div>

0 commit comments

Comments
 (0)