You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/src/pages/docs/routing.mdx
+6-4
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ In this case, requests for all locales will be rewritten to have the locale only
107
107
2.[Alternate links](#alternate-links) are disabled in this mode since URLs might not be unique per locale. Due to this, consider including these yourself, or set up a [sitemap](/docs/environments/actions-metadata-route-handlers#sitemap) that links localized pages via `alternates`.
108
108
3. You can consider increasing the [`maxAge`](#locale-cookie) attribute of the locale cookie to a longer duration to remember the user's preference across sessions.
109
109
110
-
#### Custom prefixes [#locale-prefix-custom]
110
+
#### `prefixes`[#locale-prefix-prefixes]
111
111
112
112
If you'd like to customize the user-facing prefix, you can provide a locale-based mapping:
113
113
@@ -160,7 +160,9 @@ If you'd like to encode custom information in the locale, you can use arbitrary
160
160
161
161
### `pathnames`[#pathnames]
162
162
163
-
Many apps choose to localize pathnames, especially when search engine optimization is relevant, e.g.:
163
+
Many apps choose to localize pathnames, especially when search engine optimization is relevant.
When in doubt, you can revalidate both paths to be on the safe side.
256
+
When in doubt, you can revalidate with `revalidateTag` instead.
255
257
256
258
See also: [`vercel/next.js#59825`](https://github.com/vercel/next.js/issues/59825)
257
259
@@ -323,7 +325,7 @@ If you want to serve your localized content based on different domains, you can
323
325
-`ca.example.com/fr`: `fr-CA`
324
326
-`fr.example.com`: `fr-FR`
325
327
326
-
In many cases, `domains` are combined with a [`localePrefix`](#locale-prefix) setting to achieve results as shown above. Also [custom prefixes](#locale-prefix-custom) can be used to customize the user-facing prefix per locale.
328
+
In many cases, `domains` are combined with a [`localePrefix`](#locale-prefix) setting to achieve results as shown above. Also [custom prefixes](#locale-prefix-prefixes) can be used to customize the user-facing prefix per locale.
0 commit comments