From 3f5abd1f0799ebd8511e63742e89e6aee0ce0f08 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 6 Jul 2022 12:40:28 +0200 Subject: [PATCH] wip #5339 @0.25 --- _seohybrid.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- 2.39.5