Module

replacePathParams

Replace the route pathname (config path) with params. The length of the keys
Parameters:
Name Type Description
path The route config path for a route of a router like React-Router
params The param or an array of params in order. e.g. For /shops/:id/orders/:id -> ['shop123', 'order4325']

View Source routing/replacePathParams.js, line 12