diff --git a/main.go b/main.go
index 8f4c8447acce16d35df40e60ab6348c2dbb0afd8..d85bfd61131f446f995cd806bfb2d21e19585b50 100644
--- a/main.go
+++ b/main.go
@@ -65,7 +65,7 @@ func renderPage(w http.ResponseWriter, req *http.Request) {
 	outputDir := filepath.Join(webDir, provider)
 	serveFile := filepath.Join(webDir, req.URL.Path)
 	suffix := ""
-	if strings.HasSuffix(serveFile, "/by_date.html") {
+	if strings.HasSuffix(serveFile, "_expired.json") {
 		suffix = "_expired"
 	}