Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Mobile site doesnt load intended content #5619

Closed
mariangherca opened this issue Feb 7, 2025 · 2 comments
Closed

[Bug] Mobile site doesnt load intended content #5619

mariangherca opened this issue Feb 7, 2025 · 2 comments

Comments

@mariangherca
Copy link

Describe the bug

  1. Go to https://git.sr.ht/ gets seemingly random text
  2. Click Menu Desktop Site to get expected content.

How to Reproduce

Image

Expected behavior

Image

Environment

- DDG App Version:5.225.0
- Device:Samsung xCover 7
- OS: Android 14
Copy link
Contributor

github-actions bot commented Feb 7, 2025

Thank you for opening an Issue in our Repository.
The issue has been forwarded to the team and we'll follow up as soon as we have time to investigate.
As stated in our Contribution Guidelines, requests for feedback should be addressed via the Feedback section in the Android app.

@lmac012
Copy link
Contributor

lmac012 commented Feb 13, 2025

Thank you for reporting this issue. It appears that the website is blocking requests (serving alternative content) based on the User-Agent header we use.

I was able to reproduce this issue only when using this exact User-Agent value:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36.

Enabling desktop mode changes the User-Agent value, allowing you to bypass the restriction. Since the blocked User-Agent header value contains an outdated WebView version (131.x), updating the WebView component on your device to a newer version should resolve the issue and enable access to the website without having to switch to desktop mode.

@lmac012 lmac012 closed this as completed Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants