Skip to content

x/website: offline tour broken links #59914

Open
@crisman

Description

@crisman

While trying to fix offline tour links other go.dev resources (golang/tour#1463 & golang/tour#1473) I put in golang/website#213 which updated URLs to work offline by adding https://go.dev/ prefixes.

I later noticed this commit:

commit f81f4f7f21d45f2e62f8dbcf84e0fd5d7b2785a3
Author: Russ Cox rsc@golang.org
Date: Fri Jan 14 12:53:28 2022 -0500

_content: remove some https://go.dev/ prefixes in links

The site is served at both go.dev and golang.google.cn.
In China, only golang.google.cn can serve, so we try to use
relative links to avoid pointing users to the copy they can't access.

Periodically we have to remove prefixes that have crept in.
This commit applies today's round of that.

Which points out a third place these URLs need to work and a reason and policy to use relative URLs.

I think we need the local tour binary to get a handler update to allow for redirect of /pkg/, /blog/, /doc/, /talks/, /cmd/, & /.

There is already a handler for / which redirects to the tour start point which might should stay that way.

Does anyone see an issue with adding redirect handlers to the offline tour?

Does anyone have a input on changing or not of the / handler?

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.website

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions