Skip to content

Commit

Permalink
Update redirects.mdx
Browse files Browse the repository at this point in the history
Remove unrelated to app router paragraph on redirects page.

This paragraph applies to pages router but not app router. I first thought this is a bug, cause i couldn't get it working as described and opened a [bug report](#60608).
After doing some search, i [found](#26426) that this behavior is applicable only to pages router, but not app router.
  • Loading branch information
ziyafenn committed Jan 13, 2024
1 parent f6c4c27 commit 14c1e5a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/02-app/02-api-reference/05-next-config-js/redirects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ module.exports = {

Redirects are checked before the filesystem which includes pages and `/public` files.

Redirects are not applied to client-side routing (`Link`, `router.push`), unless [Middleware](/docs/app/building-your-application/routing/middleware) is present and matches the path.

When a redirect is applied, any query values provided in the request will be passed through to the redirect destination. For example, see the following redirect configuration:

```js
Expand Down

0 comments on commit 14c1e5a

Please sign in to comment.