if (window.top !== window.self) {
    window.top.location.href = location.href;
}