Skip to content

Commit

Permalink
docs: Improve disclaimer for manual rewrites
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn authored Oct 30, 2024
1 parent ef0d584 commit eef6ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/pages/docs/routing/middleware.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export const config = {
};
```

Note that if you use a [`localePrefix`](/docs/routing#locale-prefix) other than `always`, you need to adapt the handling appropriately to handle unprefixed pathnames too.
Note that if you use a [`localePrefix`](/docs/routing#locale-prefix) other than `always`, you need to adapt the handling appropriately to handle unprefixed pathnames too. Also, make sure to only rewrite pathnames that will not lead to a redirect, as otherwise rewritten pathnames will be redirected to.

### Example: Integrating with Clerk

Expand Down

0 comments on commit eef6ab1

Please sign in to comment.