gddo-server: account for vendor dirs in redirect does not support documentation for vendor directories.
When showing the corresponding link in the header or
when automatically redirecting, change the destination to be the homepage instead of a vendor link that will 404.

Fixes golang/go#38671

Change-Id: Ic7d221d3cc7fef352f5c7097a667fb8dd2ad0340
Run-TryBot: Andrew Bonventre <>
Reviewed-by: Julie Qiu <>
5 files changed