Modified linkIstanza js function.
Now it depends from path field