|
|
|
@ -10,12 +10,14 @@ $(document).ready(function () {
|
|
|
|
|
alert('debug:origin redirect:' + window.redirect);
|
|
|
|
|
}
|
|
|
|
|
var redirect = window.redirect;
|
|
|
|
|
while (redirect.indexOf('://') < 0) {
|
|
|
|
|
redirect = decodeURIComponent(redirect);
|
|
|
|
|
if (redirect == window.redirect) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
window.redirect = redirect;
|
|
|
|
|
if (window.redirect !=null) {
|
|
|
|
|
while (redirect.indexOf('://') < 0) {
|
|
|
|
|
redirect = decodeURIComponent(redirect);
|
|
|
|
|
if (redirect == window.redirect) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
window.redirect = redirect;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|