Currently, I am developing an E-commerce website and implementing dynamic routing in Next.js. I am facing an issue where the route redirects to the category page, but when I click on any specific category, it shows a 404 error page because the route looks like this:
localhost:3000/category/category/female
I am confused as to why the word "category" is repeated twice in the route.