Redirecting on the server side
Unanswered
Gouty oak gall posted this in #help-forum
Gouty oak gallOP
What is the proper way, using the app router, to perform a redirect on the server side? For example someone hits a URL and based on their session I want to redirect them. When I use redirect() it seems to respond to the browser then redirect.
2 Replies
if you use
redirect from next/navigation it should send a redirect response, as such the browser does like normal...@Gouty oak gall What is the proper way, using the app router, to perform a redirect on the server side? For example someone hits a URL and based on their session I want to redirect them. When I use redirect() it seems to respond to the browser then redirect.
have you resolved this issue... has the
redirect suggestion worked?