v0.3.x: refactor util/href