hwo to get current url path in react router code example Example: how to get url in react window.location.href