Breaking Out of a Layout with +page@route
Reset the layout chain for a specific page using the @ segment notation.
Layout Reset Syntax
Use the @ syntax in a file name to break out of layouts up to a named ancestor.
Example: Reset to Root
Name your file +page@.svelte to break out of all layouts.
src/routes/admin/login/+page@.svelte // skips admin layoutAll lessons in this course
- Layout Groups with (group)
- Route-Level Layouts
- Breaking Out of a Layout with +page@route
- Shared Data Across Layouts