Location
To retrieve the current location, use the location property:
router.location // retrieve the location
router.location.state // retrieve the location stateTo retrieve the current location, use the location property:
router.location // retrieve the location
router.location.state // retrieve the location state