Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested layouts to allow embeds #7

Open
bothness opened this issue Feb 8, 2024 · 0 comments
Open

Nested layouts to allow embeds #7

bothness opened this issue Feb 8, 2024 · 0 comments

Comments

@bothness
Copy link
Contributor

bothness commented Feb 8, 2024

Embed pages should ideally sit beneath the indicator/dataset and area insights pages, but should not have headers and footers, so we need to introduce some kind of layout nesting to allow for these routes to work:

  • /datasets/[slug]/embed?{params}
  • /areas/[slug]/insights/embed?{params}

Svelte Kit provides documentation for this use case on this page.

The complication in our case is that we'd ideally like to inherit the data from the parent +layout.js but not the layout from the parent +layout.svelte

@bothness bothness changed the title Need to introduce nested layouts to allow embeds Nested layouts to allow embeds Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant