Location

To retrieve the current location, use the location property:

router.location // retrieve the location
router.location.state // retrieve the location state