Overview - Route groups
What is it?
Route groups in Svelte are a way to organize routes in your app without affecting the URL path. They let you group related pages together in folders for better structure and code sharing, but the group name does not appear in the web address. This helps keep URLs clean while keeping your project files neat and manageable.
Why it matters
Without route groups, organizing many related pages can make URLs long and confusing, or force you to repeat code. Route groups solve this by letting you group routes logically in your project without changing the URL. This keeps your app easier to maintain and your URLs user-friendly, improving both developer experience and user navigation.
Where it fits
Before learning route groups, you should understand basic Svelte routing and how file-based routing works. After mastering route groups, you can explore advanced routing features like layouts, nested routes, and dynamic parameters to build complex apps.