Next.js Discord

Discord Forum

app `router.push()` not working on mobile browser(s)

Unanswered
English Setter posted this in #help-forum
Open in Discord
English SetterOP
I have a custom Combobox+Select based on Radix UI + Ariakit,

when an item is selected I router.push(item.url)

It works on Desktop, yet it fails on mobile (just ... does nothing),
I did some debugging on Android (on up to date Chrome and Brave), no errors on the console!

Note: window.location.href = item.url works, but it feels wrong

It almost makes no sense,
but I have wasted more time than I'm willing to admit on this issue and would really appreciate your help 🙏

0 Replies