window.location = 'https://' + window.location.hostname + ':2443/platform/login.php?redirect=' +escape(window.location.href);