code: func Redirect(w http.ResponseWriter, r *http.Request, newPath string, statusCode int) {
  	if q := r.URL.RawQuery; q != "" {
  		newPath += "?" + q
  	}
  	http.Redirect(w, r, newPath, statusCode)
  }
docs: // Redirect sends an HTTP redirect to the client but will preserve
  // the query string for the new path. Based on http.localRedirect
  // from the Go standard library.