Next.js Discord

Discord Forum

Going back to previous page doesn't change UI (the page content) only link is changed

Unanswered
Atlantic salmon posted this in #help-forum
Open in Discord
Atlantic salmonOP
Suppose I'm going from home to a blog post then when i try to go back from the blog to home using the browser native back button only the link is getting updated not the content(UI). using app router. any help appreciated

10 Replies

just checking, are you using the latest version of next.js
Atlantic salmonOP
yes "next": "^13.4.19",
thats good (just many bugs have been fixed, and losts of people haven't updated)
Atlantic salmonOP
actually ive copied the initial code from my other project (new one is also kind of same so) and tweaking the copied one the oher project is working fine navigation is working fine
without code, i don't think i can help (so many things can do this): https://nextjs-faq.com/good-question
@riský without code, i don't think i can help (so many things can do this): <https://nextjs-faq.com/good-question>
Atlantic salmonOP
by reading this i guess i cant share long junk of codes here so ... :sweating:
this is the directory structure , its just a simple next sanity website, actually i dont have slightest idea about what is causing the problem and what part of code i need to share so ...
tbh i don't know what could causing the issue then 😭
Anyone went through the same problem and found the solution please looking for help here :meow_peek: