Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Pageview.Device is Mobile on Desktop

Pageview.Device is Mobile on Desktop

Thomas Schroll
Reply

Hi

I have a weird problem in DW 9.1.4. after a recycle of the application pool the Pageview.Device is (correctly) 'Desktop' in a chrome browser on windows. After a few clicks on the site suddenly the Pageview.Device is changed to 'Mobile'. I have checked the http header in dev tools and that is not 'Mobile'. The tag GetGlobalValue("Global:Device.IsMobile") is also wrong.

Does anybody have a clue on where to look for errors, or has anybody experienced this problem. 

Regards Thomas


Replies

 
Nicolai Pedersen
Reply

Hi Thomas

We never saw this behavior before. What is you UA string? And does this happen in other browsers? And does it happen in Icognito mode of your browser?

BR Nicolai

 
Thomas Schroll
Reply

Hi Nicolai

The UA string is 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36'.

I can provoke the browser to change to mobile by using the 'Toggle device' in dev tools (chrome). When I then refresh the site in edge and IE the site will show me the mobile version even though the http header are desktop.

If I recycle the app pool the site will immediately go back to default (desktop).

Once I saw a template error, and I have now changed the template to only display mobile if the IsMobile global tag is either 'True' (string) or '1' (int), but no luck.

It is the same in incognito mode.

Regards Thomas

 
Nicolai Pedersen
Reply

Hi Thomas

I think we found this one - registered as TFS#30196 for 9.2.

BR Nicolai

 

You must be logged in to post in the forum