Just replacing the href wasn't enough