* adjust createPreviewLink function when type is page.