score:2

Accepted answer

you will need to wrap the connected component with the withrouter hoc of react-router

export default withrouter(connect(mapstatetoprops)(destination))

Related Query

More Query from same tag