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

x/pkgsite: "Rendered for" (GOOS) setting should carry across links #49424

mhagger opened this issue Nov 7, 2021 · 0 comments

x/pkgsite: "Rendered for" (GOOS) setting should carry across links #49424

mhagger opened this issue Nov 7, 2021 · 0 comments


Copy link

@mhagger mhagger commented Nov 7, 2021

What is the URL of the page with the issue? (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



What did you do?

  1. Go to using a Linux browser. Note that the page is "Rendered for Linux/amd64".
  2. On that page, select "Rendered for Windows/amd64". The page redirects to and shows the Windows versions of the docs. This is as expected.
  3. Click on various links in the rendered-for-Windows page. As far as I can tell, most links that go outside of the page do not preserve the 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:
    • In the "Constants" second, in the line for O_RDONLY, the links for syscall and O_RDONLY
    • In the "Type Signal" section, the links for syscall and SIGINT

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.

@gopherbot gopherbot added this to the pkgsite/unplanned milestone Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants