Skip to content

vue-router / _RouteLocationBase

_RouteLocationBase ​

Internal

Base properties for a normalized route location.

Extends ​

Extended by ​

Properties ​

fullPath ​

ts
fullPath: string;

The whole location including the search and hash. This string is percentage encoded.


hash ​

ts
hash: string;

Hash of the current location. If present, starts with a #.


meta ​

ts
meta: RouteMeta;

Merged meta properties from all the matched route records.

Inherited from ​

MatcherLocation.meta


name ​

ts
name: 
  | RouteRecordNameGeneric
  | null;

Name of the matched record

Inherited from ​

MatcherLocation.name


params ​

ts
params: RouteParamsGeneric;

Object of decoded params extracted from the path.

Inherited from ​

MatcherLocation.params


path ​

ts
path: string;

Percentage encoded pathname section of the URL.

Inherited from ​

MatcherLocation.path


query ​

ts
query: LocationQuery;

Object representation of the search property of the current location.


redirectedFrom ​

ts
redirectedFrom: RouteLocationGeneric | undefined;

Contains the location we were initially trying to access before ending up on the current location.

Released under the MIT License.