feat: page content

This commit is contained in:
2026-03-02 15:40:42 +01:00
parent 19b9532f21
commit c3af7a1b35
16 changed files with 120 additions and 150 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)
})
}