Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Reset layout in nested route #809

Closed
Closed
@sto3psl

Description

@sto3psl

Hi everyone, I'm currently building an app with sapper and am quite happy with it. There is one problem though.

I have a _layout.svelte file in my src/routes folder to get a consistent navigation component on all pages. All sub routes inherit that layout, which is fine in most cases. Now I want a nested routed, but it should not use any _layout.svelte that is above in the tree.

Example file structure:

src/routes
├── _error.svelte
├── _layout.svelte
├── user
│   └── [user_id]
│       ├── index.svelte
│       └── info
│           └── index.svelte /* this should not use `src/routes/_layout.svelte` */
└── index.svelte

Is there any way to reset the layout or tell a page to not inherit layouts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions