Creatng the right path for the preview link