RelativeRoutingType
react-router

RelativeRoutingType type

type RelativeRoutingType = "route" | "path"
  • "route": relative to the route hierarchy so .. means remove all segments of the current route even if it has many. For example, a route("posts/:id") would have both :id and posts removed from the url.
  • "path": relative to the pathname so .. means remove one segment of the pathname. For example, a route("posts/:id") would have only :id removed from the url.
Docs and examples CC 4.0