added isWindowRedirect for logout