diff --git a/src/content/docs/en/core-concepts/routing.mdx b/src/content/docs/en/core-concepts/routing.mdx index 3cd7f7b5b8f12..79365f15767ee 100644 --- a/src/content/docs/en/core-concepts/routing.mdx +++ b/src/content/docs/en/core-concepts/routing.mdx @@ -305,9 +305,9 @@ It's possible for multiple defined routes to attempt to build the same URL path. - [...slug].astro -Astro needs to know which route should be used to build the page. To do so, it sorts them according to the following rules in order: +Astro needs to know which route should be used to build the page. To do so, it sorts the routes according to the following rules (if two rules apply, the one that comes first in the following list takes precedence): -- Routes with more path segments will take precedence over less specific routes. In the example above, all routes under `/posts/` take precedence over `/[...slug].astro` at the root. +- Routes with more path segments will take precedence over routes with fewer path segments. In the example above, all routes under `/posts/` take precedence over `/[...slug].astro` at the root. - Static routes without path parameters will take precedence over dynamic routes. E.g. `/posts/create.astro` takes precedence over all the other routes in the example. - Dynamic routes using named parameters take precedence over rest parameters. E.g. `/posts/[page].astro` takes precedence over `/posts/[...slug].astro`. - Pre-rendered dynamic routes take precedence over server dynamic routes.