My auth system is working on rewrite level, so basically, every site that needs authentication is being redirected to login page. Is there any way to automatically redirect top.windows.location when ajax request is being redirected?