Next.js Discord

Discord Forum

The URL isn't changed when redirected it from middleware.

Unanswered
Bigheaded ant posted this in #help-forum
Open in Discord
Bigheaded antOP
Why is it that when I try to move to a page that is held by the middleware, the path can still lead to the page that contains the middleware. If the title is appropriate, don't use the one from the restricted page, but for the URL, that it still use the path from the page in the middleware. So for example, I have logged in, then I click the link that directs to the /auth/register page, it should redirect to the /dashboard/profile page but the URL is still /auth/register.

2 Replies