Different behaviour depending on User Agent
-
Hi,
I have a weird problem here.
Here is a page:
https://www.hatsfromoz.com.au/category/racing-fascinators-hats-spring-summer-2022/
I am looking at page on my phone and I can see that two buttons at the top are not working (“Filter” and “Sort”). Something to do with UCSS, I think. OK, trying to debug it on PC. Opening same page in browser and emulating mobile device. Everything is working as expected. Buttons work. Tried in FF and Chrome.
Now, I am sure It is User Agent string. Safari browser reproduces the problem reliably. When iPhone is selected as device emulator, it sets User Agent string as iOS device. If I change it to default Safari user agent, problem disappears. Obviously, different version of page is served based on User Agent and not based on screen size.
- The topic ‘Different behaviour depending on User Agent’ is closed to new replies.