Bug 234074 - Safari uses og:url meta tag to request a Desktop/Mobile view
Summary: Safari uses og:url meta tag to request a Desktop/Mobile view
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-12-09 03:26 PST by timocov
Modified: 2022-02-10 08:54 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description timocov 2021-12-09 03:26:46 PST
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).
Comment 1 Alexey Proskuryakov 2021-12-13 10:00:46 PST
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.
Comment 2 timocov 2021-12-13 11:30:44 PST
> 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.
Comment 3 Alexey Proskuryakov 2021-12-13 13:07:48 PST
No problem.
Comment 4 Radar WebKit Bug Importer 2021-12-13 13:08:00 PST
<rdar://problem/86429458>
Comment 5 Brent Fulgham 2022-02-10 08:54:13 PST
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.