Is there a way to force the site to load as Mobile site?
I’m trying to find a workaround for Tablets. They tend to request the desktop site which does not fit.
Since we have a way to identify that the browser is a tablet, if we could “redirect” the site to the mobile version, this could be a solution.
Have you ever actually tried doing this? Once you add the line
import wixWindow from 'wix-window';
into your routers.js file it causes a 500 timeout error to any prefix pages. The Corvid Reference manual itself states “the APIs in wix window can only be used in front end code”. That means you can’t determine the form factor before loading the page (you’d have to wait until onReady). Or am I missing something?