How can I use router.push
(or something similar) in Next.js to redirect one page to another while keeping the params and anchors?
Example:
site.com/blog/12#comments?param=somevalue¶m2=anothervalue
=> site.com/blog/some-blog-post#comments?param=somevalue¶m2=anothervalue
Is there a built-in way to do this?