Code
if(!matchMedia('(min-aspect-ratio: 1/1)').matches) location.replace('/mindex/');Code
if(!matchMedia('(min-aspect-ratio: 1/1)')) location.replace('/mindex/');Not sure what you experienced, but that code basically just said "redirect to /mindex if the page is not already /mindex", but the page would never have been /mindex unless you also pasted the code there. That code you added, basically triggered the redirection on both mobile and desktops, regardless of aspect.I have never had any code in the mindex page only the real index... as you can see in the screenshot above.