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
x/website: relative links in blog.golang.org posts 404s when followed from the golang.org homepage #36930
Comments
Thanks for reporting this. If you click on that link from the homepage, it goes to golang.org/go2-here-we-come, which 404s, while if you open the blog post (https://blog.golang.org/go1.15-proposals) and then click on the link, it goes to blog.golang.org/go2-here-we-come, which is correct. |
Thanks for the report. When making a code review suggestion in CL 216199, I didn't take it into account that blog posts are embedded directly on golang.org, and thus cannot use relative relative links to other blog.golang.org pages. I'll send a fix by rolling back CL 216626 which implemented my faulty suggestion, and file an issue about catching this potential problem via a test. Edit: Filed #36944. |
Change https://golang.org/cl/217239 mentions this issue: |
… for other blog articles" This reverts CL 216626 (commit 8bf1296992b6579acabcba62cc6cd0efe039c38a). We cannot rely on relative links in blog posts to stay relative to blog.golang.org, because blog posts are also embedded on golang.org. This change caused those links to point to https://golang.org/go2-here-we-come, which is 404. Fixes golang/go#36930 Updates golang/go#36944 Change-Id: Ie5ca8f112ff6465328d258b283d540c07e909a54 Reviewed-on: https://go-review.googlesource.com/c/blog/+/217239 Reviewed-by: Robert Griesemer <gri@golang.org> X-Blog-Commit: e1c854a5c639de192ed53c9fb8059c6be190b182
… for other blog articles" This reverts CL 216626 (commit 8bf1296992b6579acabcba62cc6cd0efe039c38a). We cannot rely on relative links in blog posts to stay relative to blog.golang.org, because blog posts are also embedded on golang.org. This change caused those links to point to https://golang.org/go2-here-we-come, which is 404. Fixes golang/go#36930 Updates golang/go#36944 Change-Id: Ie5ca8f112ff6465328d258b283d540c07e909a54 Reviewed-on: https://go-review.googlesource.com/c/blog/+/217239 Reviewed-by: Robert Griesemer <gri@golang.org> X-Blog-Commit: e1c854a5c639de192ed53c9fb8059c6be190b182
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I visited the Golang.org web page and got a link to an error page which was referenced as though it was available.
I have attached images
What did you expect to see?
The reference to Go 2 Here we come to work or atleast not to display an error
What did you see instead?
I got an lstat error message
The text was updated successfully, but these errors were encountered: