score:2

Accepted answer
const locations = this.props.location.pathname.split('/');
// do something 
this.props.route.push(locations.join('/'));

score:0

extraDataStore[url] = extraData;

Related Query

More Query from same tag