Partially revert c2281e3694f78e1d4158c50913c13c73868a03b4. Re-add onBuildUrl.