Module

matchRoutePathname

Determine if pathname and config path are equal and get the matched route pathname (config path). If pathnames includes path params, it will be determined by equivalent path position, e.g. "/shops/:id/settings" is equal to "/shops/123/settings"
Parameters:
Name Type Description
path The actual pathname displayed on browser navigation bar
route The route config path for a route of a router like React-Router
isExact

View Source routing/matchRoutePathname.js, line 5