Handle reference.html properly