Fix to generation of layers iframe URI