Skip to content

Commit 068a26a

Browse files
committed
Reserve "/go/" URL prefix for redirect pages
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 <[email protected]>
1 parent c3bcd2b commit 068a26a

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

go/about.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
description: Docker documentation redirect URLs
3+
title: Docker documentation redirect URLs
4+
published: false
5+
---
6+
7+
This page is used to reserve the "/go/" URL/path for redirecting purposes. This
8+
page is not published, and should not be visible on the documentation website.
9+
10+
Use the `/go/` URL prefix to provide "vanity" URLs linking to the documentation.
11+
These URLs can be used in (for example) the `docker` CLI to provide a short,
12+
permanent link to refer to a topic in the documentation.
13+
14+
Having a fixed `/go/` URL allows you to redirect the URL to the most current
15+
location in the documentation for a given topic, which may evolve over time.
16+
17+
For example, the `docker` CLI can output `https://docs.docker.com/go/some-topic`
18+
in its help output, which can be redirected to elsewhere in the documentation,
19+
using the `redirect_from` metadata field in the target page.

0 commit comments

Comments
 (0)