internal/web: fix syntax rules hyperlinks

The filepath for the spec document changed and broke
the linkify step.

Fixes golang/go#50915

Change-Id: Ieafe9c665f4063fb9f9ddf74610925f123e2c249
Reviewed-on: https://go-review.googlesource.com/c/website/+/388859
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
diff --git a/cmd/golangorg/testdata/web.txt b/cmd/golangorg/testdata/web.txt
index 545bce2..4bd5cc9 100644
--- a/cmd/golangorg/testdata/web.txt
+++ b/cmd/golangorg/testdata/web.txt
@@ -339,6 +339,9 @@
 GET https://go.dev/ref/spec
 body contains Go Programming Language Specification
 
+GET https://go.dev/ref/spec
+body contains <a id="assign_op">assign_op</a>
+
 GET https://golang.org/robots.txt
 redirect == https://go.dev/robots.txt
 
diff --git a/internal/web/site.go b/internal/web/site.go
index 0004410..f6269b0 100644
--- a/internal/web/site.go
+++ b/internal/web/site.go
@@ -525,7 +525,7 @@
 	}
 
 	// if it's the language spec, add tags to EBNF productions
-	if strings.HasSuffix(filePath, "go_spec.html") {
+	if strings.HasSuffix(filePath, "ref/spec.html") {
 		var buf bytes.Buffer
 		spec.Linkify(&buf, []byte(src))
 		src = buf.String()