Bug 234074
| Summary: | Safari uses og:url meta tag to request a Desktop/Mobile view | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | timocov |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED MOVED | ||
| Severity: | Normal | CC: | ap, bfulgham, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 15 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
timocov
1. Open https://docusaurus-i18n-staging.netlify.app/ in mobile Safari (I used both iPhone and iPad Mini 5, iOS 15.1 and iPadOS 15.2 (currently in beta))
2. Click on AA button and request Desktop Website
=> Safari opens https://docusaurus.io/ after that.
Also see https://github.com/facebook/docusaurus/issues/6074 for more information if needed.
It seems that Safari uses og:url meta tag to open a different page in case for some reason, what looks a bit strange and confusing (for example, why refreshing the page behaves differently).
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Thank you for the report! This is something that Safari does, could you please re-file this via https://feedbackassistant.apple.com for Apple to take a look?
Alternatively, I could migrate the report, but then you would have no visibility into it, and Apple wouldn't have a way to follow up with you.
timocov
> I could migrate the report, but then you would have no visibility into it, and Apple wouldn't have a way to follow up with you.
If it is possible, then do it please. Sorry for bothering you.
Alexey Proskuryakov
No problem.
Radar WebKit Bug Importer
<rdar://problem/86429458>
Brent Fulgham
This was investigated on the Safari side:
"This is expected behavior, we look for a canonical URL when doing the manual 'Request Desktop Site' feature since if the page is m.example.com and has a canonical URL to example.com we want to load the desktop version. We load that URL if found (otherwise reload) and change the user agent.
This site has a different domain for the canonical URL, maybe that is incorrect on the site’s part?"
Resolving as 'Moved' as the behavior is in the Safari client, and is tracked by rdar://problem/86429458.
This is behaving as designed.