Redirecting w/ Next.js

I’m using Next.js with Capacitor on my application and the Next.js router plugin isn’t functioning on my mobile device.

Code: router.push('/login')

Expected output: the page gets redirected to /login

What happens: the page doesn’t change

are you using latest version of next.js? I remember that they had a bug where their routing didn’t work on Capacitor, but they supposedly fixed it long ago.
If you are using latest then might be a regression, report it to them.

I think I’ve gotten it figured out - It seems to have been an issue with my Capacitor Storage code, which I’ve fixed.

Hello milanmdev, how did you sort it? I’m facing the same problem. I’m not using ionic in my case, but i don’t know how to handle the capacitor storage that you fixed.