I'm trying to debug an issue on complex javascript page in Chrome, where ultimately clicking on a link ends up redirecting to another page.
I'd like to find out where the code is that's actually doing the redirect, but can't seem to spot it.
I can see in the Network
tab of DevTools that the Initiator
was a certain bit of javascript, but when I click on that link and view the javascript, I don't see any window.location...
references of any sort, and have tried debugging through the code, but can't find it.
Is there an easy way to detect when window.location
is being used to redirect the page, even if it's being used in some wrapper library?
EDIT: Note - I've tried setting a breakpoint for the window.unload
event, as detailed here, but no luck.