I have an image, on clicking the image the URL changes but the page is not reloaded(partial navigation). I have used window.location.href
that fetches the current URL, but it displays the previous URL on console log. I want to fetch the URL after it changes.
Am I missing some window wait event?