Hi,

I am trying to use an image as a link to lead to another image. The URL of the page where this second image is should end with jpg, i.e., the web page should be such that it is the path of the image.

For example, this should be the end of the URL of the web page %271%27%20brand%20images/images/SHOT_10_0069.jpg.

I'm trying to do this using the rich editor in Sharepoitn.

Could someone help me out??

Much obliged

Dani AI

Generated

Short answer: make the link point to the raw image file (the direct file URL) rather than to a SharePoint viewer/sharing page. @arurpongs wants the target URL to literally end with .jpg, and was right to highlight the difference between linking within the same site and using a full server path. The practical fix is to get the file's direct URL from the library and use that as the hyperlink target for your clickable image.

Step-by-step workflow:

  1. Upload the target image to a SharePoint library that serves files (Site Assets or a Picture Library). Use simple file/folder names (no quotes or leading/trailing apostrophes; prefer hyphens/underscores instead of spaces).
  2. Open the image itself in the browser or use the library option that returns a direct file link; copy the address from the browser bar and confirm it ends with .jpg.
  3. In the page editor insert the image you want users to click, then set its hyperlink to that direct .jpg URL and save the page.

Troubleshooting notes: if the link opens a SharePoint viewer or a sharing-token URL instead of the raw .jpg, you probably copied a sharing link rather than the file URL — get the link from the library view or rename problematic files. Also verify permissions: protected files will redirect to login pages and not show the .jpg. If SharePoint still forces a wrapper, consider hosting the image in Site Assets or an external static host so the address will be a clean .jpg.

Recommended Answers

All 2 Replies

If the second picture is in the same area as the first:

<a href="%271%27%20brand%20images/images/SHOT_10_0069.jpg">Picture 2</a>

If it's in some other area:

<a href="">Picture 2</a>

Thank you.. i'll try it out

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.