In a SharePoint Online webpart page, I added an image viewer web part. The following URLs work:


(The full URL works because it is shortened to the first working URL listed above)

However, I cannot find a URL token that will link to the image. I have tried


I have also tried linking to the image in a library other than Site Assets with the same results.

The page containing the web part is

Ultimately, I would like to use the JSLink property of webparts, and I believe the path to the .js file was not working. That put me on to this trouble with images. I was keen to use the token because of a troubleshooting post that claimed URL tokens had to be used with JSLink and that other types of URLs would not work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.