router.replace option shallow
Unanswered
Serengeti posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
SerengetiOP
the shallow option only doesn't allow the triggers: getStaticProps, getServerSideProps or getInitialProps.
Is there a way to only change the url but to NOT alter the page nor rerender?
Is there a way to only change the url but to NOT alter the page nor rerender?
3 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Peterbald
Have you found the solution?
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Boreal Chickadee
joining
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
can you try this
window.history.replaceState
on client side maybe - i think it should work for not just query params: https://nextjs.org/blog/next-14-1#windowhistorypushstate-and-windowhistoryreplacestate (or do you mean on server change the url?)