diff --git a/cmd/redirector/redirector.go b/cmd/redirector/redirector.go index a2ddebdf..2aa6023a 100644 --- a/cmd/redirector/redirector.go +++ b/cmd/redirector/redirector.go @@ -1,5 +1,3 @@ -//+build ignore - // This small web app is used to redirect from the old taskfile.org domain // to the new taskfile.dev without breaking CIs that uses cURL to download // "/install.sh" without the -L flag (which follow redirects). @@ -19,9 +17,9 @@ func main() { return } - println("Redirecting to taskfile.dev") + println("Redirecting to https://taskfile.dev" + r.URL.Path) - w.Header().Set("Location", "https://taskfile.dev") + w.Header().Set("Location", "https://taskfile.dev"+r.URL.Path) w.WriteHeader(301) })