feat: page content

This commit is contained in:
2026-03-02 22:38:29 +01:00
parent 2491d21963
commit e575f34b34
14 changed files with 120 additions and 149 deletions
@@ -2,6 +2,7 @@ package translate
import (
"context"
"log/slog"
"net/http"
"strings"
)
@@ -55,6 +56,7 @@ func (s *Service) Middleware(next http.Handler) http.Handler {
targetURL += "?" + r.URL.RawQuery
}
slog.Debug("redirecting for translated url", "old", path, "new", targetURL)
http.Redirect(w, r, targetURL, http.StatusFound)
})
}