diff --git a/docs/pages/getting-started/session-management/protecting.mdx b/docs/pages/getting-started/session-management/protecting.mdx index 67de091276..89e944e707 100644 --- a/docs/pages/getting-started/session-management/protecting.mdx +++ b/docs/pages/getting-started/session-management/protecting.mdx @@ -284,7 +284,7 @@ export const config = { } ``` -Middleware will protect pages as defined by the `matcher` config export. For more details about the matcher, check out the [Next.js docs](https://nextjs.org/docs/pages/building-your-application/routing/middleware#matching-paths). +Middleware will protect pages as defined by the `matcher` config export. For more details about the matcher, check out the [Next.js docs](https://nextjs.org/docs/app/api-reference/file-conventions/middleware#matcher). You should not rely on middleware exclusively for authorization. Always ensure