I just created a website using Next js 13 (with app router) and Mantine UI (for front end).
On mobile, I'm displaying a responsive menu in the homepage. When I navigate to the dashboard from one of my links in the Modal/Drawer menu, I am unable to return back to the homepage by pressing the back button on mobile.
When I press the back button on mobile, I see the homepage for a moment and almost immediately I'm redirected back to the dashboard. (The url also changes)
However, if I try to navigate using links to the dashboard (without pressing the mobile back button), there is no issue. The 4 cards in the homepage also navigate to the dashboard, but this problem doesn't occur.
This is happening only on mobile devices. Everything works fine on desktop (even in mobile responsive mode). Also works on mobile if you use the desktop version.
Here's the link to the hosted website on Netlify - https://talentelly.netlify.app/
Steps to reproduce-
This is the codebase/file structure for my application-
HeaderMegaMenu component-
Any help is appreciated!
I just upgraded the next version to v13.5.3, and this problem finally no longer occurs.