Next.js Discord

Discord Forum

redirect vs permantentRedirect?

Unanswered
American Crocodile posted this in #help-forum
Open in Discord
American CrocodileOP
I am having a weird issue with "redirect" vs "permanentRedirect".

It's my understanding (wrong?) that fundamentally they should work the same way.

But I have a different behavior: redirecting using "redirect" causes a double refresh on the client, while "permanentRedirect" does not.

I wonder if anyone knows more about this. Thank you in advance.

Attached a quick demo of both behaviors.

0 Replies