Skip to content

Commit

Permalink
docs: Clarify redirects in next.config (vercel#74019)
Browse files Browse the repository at this point in the history
  • Loading branch information
molebox authored Dec 17, 2024
1 parent ce881de commit 2b61510
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ When a redirect is applied, any query values provided in the request will be pas
}
```

> **Good to know**: Remember to include the forward slash `/` before the colon `:` in path parameters of the `source` and `destination` paths, otherwise the path will be treated as a literal string and you run the risk of causing infinite redirects.
When `/old-blog/post-1?hello=world` is requested, the client will be redirected to `/blog/post-1?hello=world`.

## Path Matching
Expand Down

0 comments on commit 2b61510

Please sign in to comment.