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

Reserve "/go/" URL prefix for redirect pages #11460

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

thaJeztah
Copy link
Member

This page is used to reserve the "/go/" URL/path for redirecting purposes. This
page is not published, and should not be visible on the documentation website.

Use the /go/ URL prefix to provide "vanity" URLs linking to the documentation.
These URLs can be used in (for example) the docker CLI to provide a short,
permanent link to refer to a topic in the documentation.

Having a fixed /go/ URL allows you to redirect the URL to the most current
location in the documentation for a given topic, which may evolve over time.

For example, the docker CLI can output https://docs.docker.com/go/some-topic
in its help output, which can be redirected to elsewhere in the documentation,
using the redirect_from metadata field in the target page.

This page is used to reserve the "/go/" URL/path for redirecting purposes. This
page is not published, and should not be visible on the documentation website.

Use the `/go/` URL prefix to provide "vanity" URLs linking to the documentation.
These URLs can be used in (for example) the `docker` CLI to provide a short,
permanent link to refer to a topic in the documentation.

Having a fixed `/go/` URL allows you to redirect the URL to the most current
location in the documentation for a given topic, which may evolve over time.

For example, the `docker` CLI can output `https://docs.docker.com/go/some-topic`
in its help output, which can be redirected to elsewhere in the documentation,
using the `redirect_from` metadata field in the target page.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

@usha-mandya ptal

@chris-crone @stephen-turner @nebuk89 FYI; you may have an interest in this as well

@netlify
Copy link

netlify bot commented Oct 2, 2020

Deploy preview for docsdocker ready!

Built with commit 068a26a

https://deploy-preview-11460--docsdocker.netlify.app

Copy link
Member

@usha-mandya usha-mandya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @thaJeztah.

Copy link
Member

@chris-crone chris-crone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM!

@thaJeztah
Copy link
Member Author

I may have to do some experimenting on how to redirect to specific anchors on a page (which may need a custom redirect page in this directory instead of using redirect_from), but we can tweak while we go; I think this is a start

@usha-mandya
Copy link
Member

I may have to do some experimenting on how to redirect to specific anchors on a page (which may need a custom redirect page in this directory instead of using redirect_from), but we can tweak while we go; I think this is a start

Yes, we can discuss this during our next sync and review some ideas on adding anchors from the UI and CLI.

@nebuk89 Do you want to take a quick look before I merge the PR?

@thaJeztah
Copy link
Member Author

@nebuk89 gave me his "LCTM" (looks cool to me) on slack; I'll merge this one 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants