x/pkgsite: "Rendered for" (GOOS
) setting should carry across links
#49424
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
Milestone
What is the URL of the page with the issue?
https://pkg.go.dev/os?GOOS=windows (for example)
What is your user agent?
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Screenshot
N/A
What did you do?
GOOS=windows
selection, thus bringing you to the rendered-for-Linux version of the page. This is especially unfortunate in links like the following, which really are OS-dependent:O_RDONLY
, the links forsyscall
andO_RDONLY
syscall
andSIGINT
What did you expect to see?
If I explicitly select the rendered-for-Windows version of a doc page, I expect links in that page to bring me to the rendered-for-Windows versions of the linked-to pages.
What did you see instead?
Many or all off-page links brought me back to rendered-for-Linux doc pages.
This is confusing, because if one doesn't notice the change of the "rendered for" setting, one might naturally assume that one is continuing to see documentation for the chosen environment.
The text was updated successfully, but these errors were encountered: