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/guide/essentials/history-mode.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Not to worry: To fix the issue, all you need to do is add a simple catch-all fal
19
19
20
20
## Example Server Configurations
21
21
22
-
**Note**: The following examples assume you are serving your app from the root folder. If you deploy to a subfolder, you should use [the `publicPath` option of Vue CLI](https://cli.vuejs.org/config/#publicpath) and the related [`base` property of the router](https://router.vuejs.org/api/#base). You also need to adjust the examples below to use the subfolder instead of the root folder (e.g. replacing `RewriteBase /` with `RewriteBase /name-of-your-subfolder/`).
22
+
**Note**: The following examples assume you are serving your app from the root folder. If you deploy to a subfolder, you should use [the `publicPath` option of Vue CLI](https://cli.vuejs.org/config/#publicpath) and the related [`base` property of the router](https://v3.router.vuejs.org/api/#base). You also need to adjust the examples below to use the subfolder instead of the root folder (e.g. replacing `RewriteBase /` with `RewriteBase /name-of-your-subfolder/`).
* Denotes the target route of the link. When clicked, the value of the `to` prop will be passed to `router.push()` internally, so the value can be either a string or a location descriptor object.
7
+
*/
8
+
to: string|Location
9
+
/**
10
+
* Setting `replace` prop will call `router.replace()` instead of `router.push()` when clicked, so the navigation will not leave a history record.
11
+
*
12
+
* @default false
13
+
*/
14
+
replace?: boolean
15
+
/**
16
+
* Setting `append` prop always appends the relative path to the current path. For example, assuming we are navigating from `/a` to a relative link `b`, without `append` we will end up at `/b`, but with append we will end up at `/a/b`.
17
+
*
18
+
* @default false
19
+
*/
20
+
append?: boolean
21
+
/**
22
+
* Sometimes we want <RouterLink> to render as another tag, e.g <li>. Then we can use tag prop to specify which tag to render to, and it will still listen to click events for navigation.
23
+
*
24
+
* @default "a"
25
+
*/
26
+
tag?: string
27
+
/**
28
+
* Configure the active CSS class applied when the link is active. Note the default value can also be configured globally via the `linkActiveClass` router constructor option.
29
+
*
30
+
* @default "router-link-active"
31
+
*/
32
+
activeClass?: string
33
+
/**
34
+
* The default active class matching behavior is **inclusive match**. For example, `<RouterLink to="/a">` will get this class applied as long as the current path starts with `/a/` or is `/a`.
35
+
*
36
+
* @default false
37
+
*/
38
+
exact?: boolean
39
+
/**
40
+
* Allows matching only using the `path` section of the url, effectively ignoring the `query` and the `hash` sections.
41
+
*
42
+
* @default false
43
+
*/
44
+
exactPath?: boolean
45
+
/**
46
+
* Configure the active CSS class applied when the link is active with exact path match. Note the default value can also be configured globally via the `linkExactPathActiveClass` router constructor option.
47
+
*
48
+
* @default "router-link-exact-path-active"
49
+
*/
50
+
exactPathActiveClass?: string
51
+
52
+
/**
53
+
* Specify the event(s) that can trigger the link navigation.
54
+
*
55
+
* @default 'click'
56
+
*/
57
+
event?: string|ReadonlyArray<string>
58
+
/**
59
+
* Configure the active CSS class applied when the link is active with exact match. Note the default value can also be configured globally via the `linkExactActiveClass` router constructor option.
60
+
*
61
+
* @default "router-link-exact-active"
62
+
*/
63
+
exactActiveClass?: string
64
+
/**
65
+
* Configure the value of `aria-current` when the link is active with exact match. It must be one of the allowed values for [aria-current](https://www.w3.org/TR/wai-aria-1.2/#aria-current) in the ARIA spec. In most cases, the default of page should be the best fit.
66
+
*
67
+
* @default "page"
68
+
*/
69
+
ariaCurrentValue?:
70
+
|'page'
71
+
|'step'
72
+
|'location'
73
+
|'date'
74
+
|'time'
75
+
|'true'
76
+
|'false'
77
+
}
78
+
79
+
interfaceRouterLinkSlotArgument{
80
+
/**
81
+
* resolved url. This would be the `href` attribute of an `a` element
82
+
*/
83
+
href: string
84
+
/**
85
+
* resolved normalized location
86
+
*/
87
+
route: Route
88
+
/**
89
+
* function to trigger the navigation. It will automatically prevent events when necessary, the same way `RouterLink` does
* When a <RouterView> has a name, it will render the component with the corresponding name in the matched route record's components option. See [Named Views](https://v3.router.vuejs.org/guide/essentials/named-views.html) for an example.
4
+
*
5
+
* @default "default"
6
+
*/
7
+
name?: string
8
+
}
9
+
10
+
/**
11
+
* Component to display the current route the user is at.
0 commit comments