I have an image, when I click on the image, the URL changes, but the page does not reload (partial navigation). I used window.location.hrefone that retrieves the current URL, but displays the previous URL in the console log. I want to get the url after changing it.
Am I missing a window wait event?
source
share