How can I get the redirect url using javascript?
===

I'm having trouble showing urls with redirect with an automation tool i'm using so I'm thinking of checking the url for redirects first before opening the popup. 

Is it possible to get the redirect URL using javascript (no jquery or other js framework as this is not supported by the tool)?

Thanks!

