formatting refeence_code url