get url of a link using react router code example Example: how to get url in react window.location.href