mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
docs: correct custom routing link (#28497)
This commit is contained in:
parent
d09c5e1ede
commit
c28be6553c
@ -6,7 +6,7 @@ navigation.icon: i-ph-folder-duotone
|
|||||||
---
|
---
|
||||||
|
|
||||||
::note
|
::note
|
||||||
To reduce your application's bundle size, this directory is **optional**, meaning that [`vue-router`](https://router.vuejs.org) won't be included if you only use [`app.vue`](/docs/guide/directory-structure/app). To force the pages system, set `pages: true` in `nuxt.config` or have a [`app/router.options.ts`](/docs/guide/going-further/custom-routing#using-approuteroptions).
|
To reduce your application's bundle size, this directory is **optional**, meaning that [`vue-router`](https://router.vuejs.org) won't be included if you only use [`app.vue`](/docs/guide/directory-structure/app). To force the pages system, set `pages: true` in `nuxt.config` or have a [`app/router.options.ts`](/docs/guide/recipes/custom-routing#using-approuteroptions).
|
||||||
::
|
::
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
@ -381,7 +381,7 @@ Server-only pages must have a single root element. (HTML comments are considered
|
|||||||
|
|
||||||
As your app gets bigger and more complex, your routing might require more flexibility. For this reason, Nuxt directly exposes the router, routes and router options for customization in different ways.
|
As your app gets bigger and more complex, your routing might require more flexibility. For this reason, Nuxt directly exposes the router, routes and router options for customization in different ways.
|
||||||
|
|
||||||
:read-more{to="/docs/guide/going-further/custom-routing"}
|
:read-more{to="/docs/guide/recipes/custom-routing"}
|
||||||
|
|
||||||
## Multiple Pages Directories
|
## Multiple Pages Directories
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ In Nuxt 3, your routing is defined by the structure of your files inside the [pa
|
|||||||
|
|
||||||
### Router Config
|
### Router Config
|
||||||
|
|
||||||
Using [router options](/docs/guide/going-further/custom-routing#router-options), you can optionally override or extend your routes using a function that accepts the scanned routes and returns customized routes.
|
Using [router options](/docs/guide/recipes/custom-routing#router-options), you can optionally override or extend your routes using a function that accepts the scanned routes and returns customized routes.
|
||||||
|
|
||||||
If it returns `null` or `undefined`, Nuxt will fall back to the default routes (useful to modify input array).
|
If it returns `null` or `undefined`, Nuxt will fall back to the default routes (useful to modify input array).
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ interface PageMeta {
|
|||||||
|
|
||||||
- **Type**: `boolean | (to: RouteLocationNormalized, from: RouteLocationNormalized) => boolean`
|
- **Type**: `boolean | (to: RouteLocationNormalized, from: RouteLocationNormalized) => boolean`
|
||||||
|
|
||||||
Tell Nuxt to scroll to the top before rendering the page or not. If you want to overwrite the default scroll behavior of Nuxt, you can do so in `~/app/router.options.ts` (see [custom routing](/docs/guide/going-further/custom-routing#using-approuteroptions)) for more info.
|
Tell Nuxt to scroll to the top before rendering the page or not. If you want to overwrite the default scroll behavior of Nuxt, you can do so in `~/app/router.options.ts` (see [custom routing](/docs/guide/recipes/custom-routing#using-approuteroptions)) for more info.
|
||||||
|
|
||||||
**`[key: string]`**
|
**`[key: string]`**
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ This feature is not yet supported in Nuxt 3.
|
|||||||
|
|
||||||
## `scrollToTop`
|
## `scrollToTop`
|
||||||
|
|
||||||
This feature is not yet supported in Nuxt 3. If you want to overwrite the default scroll behavior of `vue-router`, you can do so in `~/app/router.options.ts` (see [docs](/docs/guide/going-further/custom-routing#router-options)) for more info.
|
This feature is not yet supported in Nuxt 3. If you want to overwrite the default scroll behavior of `vue-router`, you can do so in `~/app/router.options.ts` (see [docs](/docs/guide/recipes/custom-routing#router-options)) for more info.
|
||||||
Similar to `key`, specify it within the [`definePageMeta`](/docs/api/utils/define-page-meta) compiler macro.
|
Similar to `key`, specify it within the [`definePageMeta`](/docs/api/utils/define-page-meta) compiler macro.
|
||||||
|
|
||||||
```diff [pages/index.vue]
|
```diff [pages/index.vue]
|
||||||
|
Loading…
Reference in New Issue
Block a user