From: Vincent Vanwaelscappel Date: Wed, 6 Jul 2022 10:40:28 +0000 (+0200) Subject: wip #5339 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3f5abd1f0799ebd8511e63742e89e6aee0ce0f08;p=fluidbook-html5.git wip #5339 @0.25 --- diff --git a/_seohybrid.html b/_seohybrid.html index ff8d99eb..2b7b4e83 100644 --- a/_seohybrid.html +++ b/_seohybrid.html @@ -21,11 +21,10 @@ var redirect = window.matchMedia('(min-device-width: 640px) and (min-device-height: 640px)').matches ? 'd' : 'mf'; var current = location.indexOf('/mf/') >= 0 ? 'mf' : 'd'; - if (current !== redirect) { - window.location = location.replace('/' + current + '/', '/' + redirect + '/'); - } else { - window.location = '../index.html$page'; - } + var redirection = current !== redirect ? location.replace('/' + current + '/', '/' + redirect + '/') : '../index.html$page'; + console.log(location, redirect, current, redirection); + //window.location = redirection; + $content