Client Redirect not working
Answered
Irish Red and White Setter posted this in #help-forum
Irish Red and White SetterOP
Trying to redirect to a page after an action is successful throws a
I am using
NEXT_REDIRECT
error.I am using
redirect();
from next/navigation
Answered by Asian black bear
This function is only for server-side use. On the client you're supposed to use
useRouter().push()
2 Replies
Asian black bear
This function is only for server-side use. On the client you're supposed to use
useRouter().push()
Answer
Irish Red and White SetterOP
Thank you @Asian black bear