diff --git a/handlers/index.go b/handlers/index.go index 5986b44..8df3c53 100644 --- a/handlers/index.go +++ b/handlers/index.go @@ -60,10 +60,10 @@ func Main(w http.ResponseWriter, r *http.Request) { } w.WriteHeader(http.StatusCreated) - w.Write([]byte(fmt.Sprintf("Location: %s\n", inputUrl))) + w.Write([]byte(fmt.Sprintf("Location: /u/%s", hashUrl))) return } w.WriteHeader(http.StatusCreated) - w.Write([]byte(fmt.Sprintf("Location: %s\n", inputUrl))) + w.Write([]byte(fmt.Sprintf("Location: /u/%s", hashUrl))) }