Skip to content

Commit

Permalink
fix: use replace instead of push for blog tags links
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshilov committed Jun 24, 2024
1 parent d0fc076 commit 09c7c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/posts-block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function PostsBlock({
tabs={['all posts', ...tags]}
current={tab}
onChange={(tag) => {
router.push(`/blog?tag=${tag.toLowerCase()}`);
router.replace(`/blog?tag=${tag.toLowerCase()}`);
}}
/>

Expand Down

1 comment on commit 09c7c72

@vercel
Copy link

@vercel vercel bot commented on 09c7c72 Jun 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.