compat: /index.php?productid= legacy URL form redirects to /t/{code} (covers old printed QR URLs)

This commit is contained in:
2026-08-10 11:51:58 +10:00
parent 97cf0974a3
commit ae231c97f6

View File

@@ -66,6 +66,7 @@ func main() {
mux := http.NewServeMux()
mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
mux.HandleFunc("GET /{$}", app.Home)
mux.HandleFunc("GET /index.php", app.Home) // legacy old-site URL form (?x=5&productid=…)
mux.HandleFunc("GET /about", app.About)
mux.HandleFunc("GET /what-is-this", app.WhatIsThis)
mux.HandleFunc("GET /contact", app.Contact)