Home > Mobile >  How to bypass next.js one page framework behavior?
How to bypass next.js one page framework behavior?

Time:10-10

Is there a way to make next.js not work like a one page framework and open every URL with reload?

CodePudding user response:

I'm not sure why you want to use this behavior, but It's depending on your navigation method.

If you want to navigation with hard reload.

With HTML use anchor tag instead of Next.js Link element.

<a href="/about" />

Programatically with js use window.location.href instead of Nuxt.js router

window.location.href = "/about"
  • Related