get the exact router link url for a page react code example Example: how to get url in react window.location.href