@@ 58,7 58,7 @@ func (server VanityServer) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
destination = baseurl
}
if (r.Form.Get("go-get") == "1") { // go-get(1)
- tmpl.Execute(rw, templatedata{User: server.Username, ImportHost: r.Host + r.URL.Path, ProjectName: projectname, Redir: destination})
+ tmpl.Execute(rw, templatedata{User: server.Username, ImportHost: r.Host + "/" + projectname, ProjectName: projectname, Redir: destination})
} else { // Standard browser
http.Redirect(rw, r, destination, 302)
}