Remove ?ref from links