Redirect for not-found in middleware #62660
Unanswered
ssxdev
asked this question in
App Router
Replies: 1 comment
-
check this one : #52233 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to redirect the user to the home page "/" if he goes to the not listed path which means "not-found.tsx" page will render, I can directly put a redirect in not-found page but is there a method to put a redirect in middleware instead of not-found. I think this will increase performance since we don't go 2 round network calls.
Beta Was this translation helpful? Give feedback.
All reactions