commit | 63bb02072914ea536a00033e8906f3ea7943422a | [log] [tgz] |
---|---|---|
author | Hana (Hyang-Ah) Kim <hyangah@gmail.com> | Wed Apr 08 18:50:32 2020 -0400 |
committer | Andrew Bonventre <andybons@golang.org> | Thu Apr 30 20:47:54 2020 +0000 |
tree | 8d6ff52942ae04f1f680bd12825dd79636dfd9c3 | |
parent | 0d8ef50e563cac4aee28c80159e561512bffd5a0 [diff] |
internal/short: allow relative paths from the shortend URLs golang.org/s/key URL shortener supported only simple redirects from key to a link. This change allows the short link to have extra path elements, and computes the redirects by appending the extra path elements to the resolved link. For example, if golang.org/s/foo is configured to be resolved to example.com, golang.org/s/foo/bar will result in a redirects to example.com/bar. Change-Id: I6aa9f4aab2d5a74c76fda446a29aae998fe48ad6 Reviewed-on: https://go-review.googlesource.com/c/website/+/227654 Run-TryBot: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
This repository holds the Go Website server code and content.
The easiest way to install is to run go get -u golang.org/x/website
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/website
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the website repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.