Table of Contents

Class RouterLocation

Namespace
Velvet
Assembly
Velvet.Docs.dll
public sealed class RouterLocation
Inheritance
object
RouterLocation

Properties

Hash

The fragment with its leading #, or the empty string when there is none: React Router's location.hash. It plays no part in route matching.

Key

Identifies the history entry: "default" for the first, and eight random base-36 characters for every push or replace after it. A history step brings back the key of the entry it lands on.

Matches

Hierarchical list of matched routes (parent first).

Params

Path parameters captured across the full matched branch.

Path

The path, including its query string and excluding the hash.

State

What the navigation that produced this location carried in State; null when it carried none. A history step brings back the state its entry was created with.