Microsoft 365 – SharePoint Online – Image webpart – resolving issue – image link disappearing – small lesson learned

Microsoft 365 - SharePoint online - Image web part - link is disappearing
Microsoft 365 - SharePoint online - Image web part - link is disappearing

Hi All,

Greetings for the day!!!

Today new issue and solution 🙂 Small learning but important one.

Issue : Link set to image in Image webpart is disappearing.

Details

  • On one of our SharePoint page we have added “Image” web part.
Microsoft 365 - SharePoint online - Image web part
fig : Microsoft 365 – SharePoint online – Image web part – link is disappearing
  • We edited the webpart and set the link webpart property to one of our document from document library.
  • We published the page.
  • First time link is working. Redirecting to the correct link set.
  • Next time when we visit the page, link is not working.
  • We verified editing the webpart and it seems link disappears.

Cause

  • Folder in which document is available is having special characters at the end – “%E2%80%8B“
  • Those characters are not visible from UI but appearing in the URL as
Folder which includes special characters at the end "%E2%80%8B" but not visible from UI
fig : Folder which includes special characters at the end “%E2%80%8B” but not visible from UI

https://knowledgejunction1.sharepoint.com/sites/oobwebpartsdemo/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2Foobwebpartsdemo%2FShared%20Documents%2FMeeting%20Effectiveness%E2%80%8B&viewid=e5fb694a%2D62d0%2D4857%2Dbac9%2D04bf38d48341

  • This happened because folder name is copied from somewhere and those characters are also get copied.

Solution

  • We have couple of options
    • Completely renaming the folder is one choice. This is not practical as we are not sure where else this document is referenced. Those links will be broken.
    • Create a new folder, copy the document and reference it. And henceforward use the new location of the document. We went for this choice.
  • After correcting the link – Image web part persisting the link and working properly.

Lesson Learned : From wherever we copy, paste it into a plain text editor like notepad first. This ensures that special characters are avoided.

    Thanks for reading !

    HAPPY LEARNING AHEAD 🙂 LIFE IS BEAUTIFUL 🙂

    Prasham Sabadra

    LIFE IS VERY BEAUTIFUL. ENJOY THE WHOLE JOURNEY :) Founder of Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

    You may also like...

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.