#How to achieve this effect in nextJS if
1 messages · Page 1 of 1 (latest)
no, I meant check if the current route is /account, if it is, refresh it, otherwise, push to it
push to it
not sure what you mean by this
so yea, you want to redirect all routes to /account, but potentially also push it onto history
how to check it first if the current route is /accunt
if the current route is /account refresh it
this sounds like it would create an infinite loop.
@lament pendant are you using the app router or the page router?
page router
thanks @harsh spindle