editLink |
---|
API Documentation / _RouteLocationBase
Base properties for a normalized route location.
-
Pick
<MatcherLocation
,"name"
|"path"
|"params"
|"meta"
>↳
_RouteLocationBase
• fullPath: string
The whole location including the search
and hash
. This string is
percentage encoded.
• hash: string
Hash of the current location. If present, starts with a #
.
• meta: RouteMeta
Merged meta
properties from all the matched route records.
Pick.meta
• name: null
| RouteRecordNameGeneric
Name of the matched record
Pick.name
• params: RouteParamsGeneric
Object of decoded params extracted from the path
.
Pick.params
• path: string
Percentage encoded pathname section of the URL.
Pick.path
• query: LocationQuery
Object representation of the search
property of the current location.
• redirectedFrom: undefined
| RouteLocationGeneric
Contains the location we were initially trying to access before ending up on the current location.