Route is not changing after redirection to “/profile”
I am having issue regarding the redirection from middleware. The route is not changing(http://localhost:3000/) but page loads and when I refresh the page the route also changed to http://localhost:3000/profile. I am checking new_user from cookies and if newUser is true then I redirect to profile page.