Next.js Discord

Discord Forum

maintaining URL path structure but without using parent layout

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
Hey,

is it possible for me to not use a layout even if its in a child of the layout in nextjs?

for example:
dashboard
- [guildId]
  // this should use the 'layout'
  - logs
    page.tsx
  - tickets
    - transcripts
      - [ticketId]
        - view
          page.tsx
page.tsx
layout.tsx // i dont want to use this inside of 'tickets' folder

i cant really change this structure because of tech dept with my old siter, it would cause lots of URLS to be broken

I need my transcripts at url: /dashboard/[guildId]/tickets/transcripts/[ticketId]/view but without using the dashboards root layout.

1 Reply