Skip to content

Commit

Permalink
add note for page router redirect behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyafenn committed Jan 16, 2024
1 parent ef1b66a commit bf07c49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ 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.
In Pages Router 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:

Expand Down

0 comments on commit bf07c49

Please sign in to comment.