79343241

Date: 2025-01-09 15:53:27
Score: 2.5
Natty:
Report link

I also have problem as I want to make like this functionality

http://localhost:3000/developer-skills/gg/how-it-work -> it should open [slug]/page

http://localhost:3000/developer-skills/gg/ -> it should open [...category]/page

http://localhost:3000/developer-skills -> it should open [...category]/page

http://localhost:3000/developer-skills/what-is-aws/ -> it should open [slug]/page

How can I make like this for my file is

src/app/[...category]/page.tsx

src/app/[...category]/[slug]/page.tsx

as I created blog website as what-is-aws and how-it-work is the slug of blog and another is category and sub-category

but problem is that

/developer-skills/what-is-aws → [...category]/[slug]/page.tsx /developer-skills/gg/how-it-work → [...category]/[slug]/page.tsx

when I open it it will open a [...category]/page.tsx

Reasons:
  • Blacklisted phrase (0.5): How can I
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: priyank sutariya