feat: page content
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user