2

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

1 Answer 1

1

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"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.