gddo/gddo-server
Julie Qiu 17b648fae2 gddo-server: redirect invalid import paths to homepage
When a URL path for a package page fails the check for
module.CheckImportPath, redirect to the homepage. Otherwise, the page
will 400 on pkg.go.dev.

Change-Id: Ic337b968a3919b2e4fcd0ab4dd6b76c631f5edf9
Reviewed-on: https://go-review.googlesource.com/c/gddo/+/279035
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-12-22 20:49:13 +00:00
..
assets gddo-server/assets: update banner 2020-12-15 22:25:38 +00:00
app.yaml internal/health: new health check package 2017-11-10 19:12:07 +00:00
background.go all: add basic trace to gddo 2017-10-10 20:11:15 +00:00
browse.go accept non source urls for github 2014-03-19 22:09:45 -07:00
browse_test.go accept non source urls for github 2014-03-19 22:09:45 -07:00
client.go httputil: remove Transport constructors aware of environment 2017-10-13 23:46:08 +00:00
config.go gddo-server: publish crawl events to a Pub/Sub feed 2018-05-29 06:05:04 +00:00
crawl.go gddo-server: fix bogus comment 2018-05-29 06:41:06 +00:00
graph.go all: update code to satisfy golint 2016-03-10 00:02:39 +00:00
logging.go gddo-server: add logging for start and end of each request 2019-12-16 15:55:21 +00:00
main.go gddo-server: delete unused teeproxy code 2020-12-22 15:03:36 +00:00
main_test.go gddo-server: move code related to pkgsite to pkgsite.go 2020-12-03 16:55:33 +00:00
pkgsite.go gddo-server: redirect invalid import paths to homepage 2020-12-22 20:49:13 +00:00
pkgsite_test.go gddo-server: redirect invalid import paths to homepage 2020-12-22 20:49:13 +00:00
play.go gddo-server: replace globals with struct 2017-10-03 17:09:54 +00:00
template.go gddo-server: account for vendor dirs in pkg.go.dev redirect 2020-06-04 15:50:40 +00:00
template_test.go all: fixed broken tests 2017-11-17 00:38:41 +00:00