diff --git a/dashboard/app/build/handler.go b/dashboard/app/build/handler.go index 55010ec6..a6da710a 100644 --- a/dashboard/app/build/handler.go +++ b/dashboard/app/build/handler.go @@ -335,7 +335,7 @@ func resultHandler(r *http.Request) (interface{}, error) { func logHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-type", "text/plain; charset=utf-8") c := contextForRequest(r) - hash := r.URL.Path[len("/log/"):] + hash := r.URL.Path[strings.LastIndex(r.URL.Path, "/")+1:] key := datastore.NewKey(c, "Log", hash, 0, nil) l := new(Log) if err := datastore.Get(c, key, l); err != nil {