SOLVED
Home

Link Web Part Not Generating Preview

%3CLINGO-SUB%20id%3D%22lingo-sub-719912%22%20slang%3D%22en-US%22%3ELink%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-719912%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20is%20the%20code%20for%20a%20trivial%20Web%20Page%20I%20am%20hosting%20in%20IIS%20on%20a%20Non-SharePoint%20machine%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3C!--%20Saw%20this%20in%20the%20source%20at%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-SharePoint-Blog%2FFiles-restore-for-SharePoint-and-Microsoft-Teams%2Fba-p%2F480760%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-SharePoint-Blog%2FFiles-restore-for-SharePoint-and-Microsoft-Teams%2Fba-p%2F480760%3C%2FA%3E%20--%3E%3CBR%20%2F%3E%3CA%20href%3D%22http%3A%2F%2Fogp.me%2Fns%23%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fogp.me%2Fns%23%3C%2FA%3E%22%20dir%3D%22ltr%22%20lang%3D%22en%22%20class%3D%22no-js%22%26gt%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CTITLE%3ETesting%20URL%20Preview%202%3C%2FTITLE%3E%3CBR%20%2F%3E%3C!--%20Saw%20these%20meta%20tags%20on%20CodeShow%20a%20long%20time%20ago%3CBR%20%2F%3E%3CA%20href%3D%22http%3A%2F%2Fcodeshow.codeplex.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fcodeshow.codeplex.com%2F%3C%2FA%3E%20--%3E%3CBR%20%2F%3E%26lt%3Bmeta%20name%3D%22%22keywords%22%22%20content%3D%22%22URL%22%20preview%3D%22%22%20test%3D%22%22%20two%3D%22%22%20%2F%26gt%3B%3CBR%20%2F%3E%26lt%3Bmeta%20name%3D%22%22description%22%22%20content%3D%22%22Trying%22%20to%3D%22%22%20figure%3D%22%22%20out%3D%22%22%20why%3D%22%22%20url%3D%22%22%20preview%3D%22%22%20works%3D%22%22%20inconsistently.%3D%22%22%20%2F%26gt%3B%3CBR%20%2F%3E%26lt%3Bmeta%20name%3D%22%22author%22%22%20content%3D%22%22Shawn%22%20eary%3D%22%22%20%2F%26gt%3B%3CBR%20%2F%3E%26lt%3Bmeta%20name%3D%22%22dateCreated%22%22%20content%3D%22%2206%2F25%2F2019%22%22%20%2F%26gt%3B%3CBR%20%2F%3E%26lt%3Bmeta%20name%3D%22%22copyright%22%22%20content%3D%22%22(c)%22%20%2F%26gt%3B%3C%2FP%3E%3CP%3E%3C!--%20%3CA%20href%3D%22https%3A%2F%2Fblog.0day.rocks%2Flink-previews-in-im-apps-and-privacy-d32e6056095b%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblog.0day.rocks%2Flink-previews-in-im-apps-and-privacy-d32e6056095b%3C%2FA%3E%20--%3E%3CBR%20%2F%3E%26lt%3Bmeta%20property%3D%22'og%3Atitle'%22%20content%3D%22'URL%22%20preview%3D%22%22%20test%3D%22%22%20three%3D%22%22%20%2F%26gt%3B%3CBR%20%2F%3E%26lt%3Bmeta%20property%3D%22'og%3Asite_name'%22%20content%3D%22'Test'%22%20%2F%26gt%3B%3CBR%20%2F%3E%26lt%3Bmeta%20property%3D%22'og%3Aimage'%22%20content%3D%22%22%26lt%3BA%22%20href%3D%22%3CA%20href%3D%22https%3A%2F%2Fbrand.uark.edu%2F_resources%2Fimages%2Fdownloads%2Ffacebook-images%2FRS47083_FacebookCovers15.jpg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fbrand.uark.edu%2F_resources%2Fimages%2Fdownloads%2Ffacebook-images%2FRS47083_FacebookCovers15.jpg%3C%2FA%3E%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%22%20%2F%26gt%3B%3CA%20href%3D%22https%3A%2F%2Fbrand.uark.edu%2F_resources%2Fimages%2Fdownloads%2Ffacebook-images%2FRS47083_FacebookCovers15.jpg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fbrand.uark.edu%2F_resources%2Fimages%2Fdownloads%2Ffacebook-images%2FRS47083_FacebookCovers15.jpg%3C%2FA%3E%22%20%2F%26gt%3B%3CBR%20%2F%3E%26lt%3Bmeta%20property%3D%22'og%3Atype'%22%20content%3D%22%22article%22%22%20%2F%26gt%3B%3CBR%20%2F%3E%26lt%3Bmeta%20property%3D%22%22og%3Adescription%22%22%20content%3D%22%22Why%22%20doesn%3D%22%22%20%2F%26gt%3B%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThis%20is%20a%20test%20page.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EWhen%20I%20the%20type%20the%20URL%20for%20that%20Web%20Page%20into%20a%20Link%20WebPart%20on%20SharePoint%20Online%2C%20I%20get%20this%20%22error%22%3A%3CBR%20%2F%3E%3CSTRONG%3E%22There's%20no%20preview%20available%20for%20this%20link.%22%3C%2FSTRONG%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EWhat%20do%20I%20need%20to%20change%20in%20the%20above%20code%2C%20to%20get%20the%20Link%20Web%20Part%20of%20SharePoint%20Online%20to%20display%20a%20preview%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-719912%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-719915%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-719915%22%20slang%3D%22en-US%22%3E%3CP%3EBTW%3A%20I%20know%20this%20is%20off%20topic%2C%20but%20it%20would%20be%20nice%20if%20this%20forum%3A%3C%2FP%3E%3COL%3E%3CLI%3EAllowed%20me%20to%20edit%20my%20posts%3C%2FLI%3E%3CLI%3EWould%20pretty%20format%20my%20code%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-807184%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-807184%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20still%20having%20problems%20with%20this.%26nbsp%3B%20As%20an%20example%2C%20if%20I%20post%20this%20URL%20in%20MS%20Teams%3A%3C%2FP%3E%3CDIV%3E%3CA%20title%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fblog%2F%22%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fblog%2F%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fblog%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CDIV%3EI%20get%20a%20URL%20Preview%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20765px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F127180iB36132923914786D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22teamsPic.png%22%20title%3D%22teamsPic.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3Ebut%20when%20I%20try%20to%20put%20the%20same%20URL%20in%20the%20Link%20WebPart%20of%20a%20SharePoint%20Online%20page%2C%20I%20get%20a%20%22There's%20no%20preview%20available%20for%20this%20link.%22%20message%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20800px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F127182i222D4B4D85E0717A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22linkeWebPartNoPreview.png%22%20title%3D%22linkeWebPartNoPreview.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-829180%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-829180%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F119394%22%20target%3D%22_blank%22%3E%40Shawn%20Eary%3C%2FA%3E%26nbsp%3B%20Having%20the%20same%20issue%2C%20but%20it%20shows%20the%20preview%20on%20some%20SharePoint%20sites%20and%20not%20on%20others%20for%20the%20same%20exact%20link.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-840828%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-840828%22%20slang%3D%22en-US%22%3E%3CP%3EExactly%20the%20same%20issue%2C%20no%20preview%20in%20Link%20Web%20part%3C%2FP%3E%3CP%3EWhat's%20the%20trick%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-841175%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-841175%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20seems%20like%20a%20bug%20-%20especially%20considering%20that%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FUse-the-Link-web-part-19C37587-118A-4813-B25A-192F3BD829D9%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EUse%20the%20Link%20web%20part%3C%2FA%3E%26nbsp%3Bpage%20shows%20a%20preview%20image%20to%20an%20external%20site.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'll%20report%20it%20to%20MS%20Support%20and%20report%20back.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENorm%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-845020%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-845020%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20the%20Link%20web%20part%20working%20for%20you%20now%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20seems%20to%20be%20for%20me.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F130826i432F05E4AB25DB60%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-846595%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-846595%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3E-%20The%20Link%20WebPart%20is%20working%20for%20all%20of%20the%20links%20you%20just%20mentioned%20but%20it%20still%20doesn't%20work%20on%20our%20SharePoint%20Online%20site%20for%20these%20URLs%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fwww.google.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.google.com%3C%2FA%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fwww.uark.edu%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.uark.edu%3C%2FA%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.bing.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.bing.com%3C%2FA%3E%3CBR%20%2F%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fwww.globalcyclingnetwork.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.globalcyclingnetwork.com%3C%2FA%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fwww.codeproject.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.codeproject.com%3C%2FA%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20should%20be%20noted%20that%20all%20of%20these%20URLs%20generate%20at%20least%20%3CSTRONG%3Esome%3C%2FSTRONG%3Epart%20of%20a%20Preview%20in%20our%20instance%20of%20MS%20Teams.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-846610%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-846610%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F119394%22%20target%3D%22_blank%22%3E%40Shawn%20Eary%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOdd%20behavior.%20The%20links%20you%20provided%20work%20for%20me.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThumbs%20up%20for%20GCN%20-%20I%20enjoy%20their%20content.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F130941i499EF773A9525E46%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-846654%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-846654%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3E-%20Yes%2C%20I'm%20getting%20odd%20behavior.%26nbsp%3B%20The%20previews%20for%20all%20of%20those%20links%20are%20partially%20working%20for%20me%20now%20also%20%3CU%3E%3CSTRONG%3EIF%3C%2FSTRONG%3E%3C%2FU%3EI%20don't%20type%20a%20space%20after%20URL.%20%26nbsp%3B%20For%20some%20reasons%2C%20if%20I%20type%20in%20a%20space%20after%20the%20URL%20on%20each%20of%20those%20links%2C%20I%20get%20a%20%22There's%20not%20preview%20available%20for%20the%20link.%22%20message.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20isn't%20serious%20since%20the%20workaround%20is%20to%20simply%20%3CSTRONG%3Enot%3C%2FSTRONG%3Eput%20in%20a%20space%20at%20the%20end%20of%20the%20URL%2C%20but%20even%20when%20I%20don't%20put%20a%20space%20at%20the%20end%20of%20the%20URL%2C%20I%20still%20only%20get%20a%20limited%20quality%20preview.%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20example%20in%20SharePoint%20with%20the%20Link%20Preview%20web%20part%20I%20get%20this%20limited%20preview%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F130943iAE3ADB08D8D9CADF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22limitedPreview.png%22%20title%3D%22limitedPreview.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3Ebut%20in%20MS%20Teams%2C%20I%20get%20this%20much%20richer%20preview%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20894px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F130944i9D5FE8B7C40F7F2D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22fullPreview.png%22%20title%3D%22fullPreview.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20I%20have%20two%20oddities.%26nbsp%3B%20The%20first%20is%20not%20serious%20since%20there%20is%20an%20easy%20workaround%20(just%20don't%20put%20a%20space%20at%20the%20end%20of%20the%20URL)%2C%20the%20second%20is%20a%20little%20disappointing%20because%20the%20SharePoint%20Preview%20seems%20to%20be%20of%20a%20lower%20quality%20than%20the%20MS%20Teams%20preview.%26nbsp%3B%20The%20second%20problem%20is%20not%20necessarily%20restricted%20to%20%3CA%20href%3D%22https%3A%2F%2Fwww.uark.edu%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.uark.edu%3C%2FA%3E.%26nbsp%3B%20There%20are%20other%20URLs%20that%20also%20seems%20to%20display%20in%20%22full%22%20preview%20for%20me%20in%20MS%20Teams%20but%20%22limited%22%20preview%20for%20me%20in%20the%20SharePoint%20Link%20WebPart.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-846679%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20Web%20Part%20Not%20Generating%20Preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-846679%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F119394%22%20target%3D%22_blank%22%3E%40Shawn%20Eary%3C%2FA%3Ethe%20Teams%20link%20preview%20does%20seem%20like%20a%20richer%20experience.%20Perhaps%20the%20SPO%20Link%20web%20part%20may%20get%20the%20same%20treatment%20down%20the%20road.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGlad%20to%20hear%20you%20have%20found%20a%20work%20around.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENorm%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Here is the code for a trivial Web Page I am hosting in IIS on a Non-SharePoint machine:

<!DOCTYPE html>
<!-- Saw this in the source at https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/Files-restore-for-SharePoint-and-Mi... -->
<html prefix="og: http://ogp.me/ns#" dir="ltr" lang="en" class="no-js">
<head>
<title>Testing URL Preview 2</title>
<!-- Saw these meta tags on CodeShow a long time ago
http://codeshow.codeplex.com/ -->
<meta name="keywords" content="URL Preview Test Two" />
<meta name="description" content="Trying to figure out why URL Preview works inconsistently." />
<meta name="author" content="Shawn Eary" />
<meta name="dateCreated" content="06/25/2019" />
<meta name="copyright" content="(c) ©2019 - University of Arkansas (Test Site)" />

<!-- https://blog.0day.rocks/link-previews-in-im-apps-and-privacy-d32e6056095b -->
<meta property='og:title' content='URL Preview Test Three' />
<meta property='og:site_name' content='Test' />
<meta property='og:image' content="https://brand.uark.edu/_resources/images/downloads/facebook-images/RS47083_FacebookCovers15.jpg" />
<meta property='og:type' content="article" />
<meta property="og:description" content="Why doesn't URL Preview Work consistently?" />
</head>

<body>
This is a test page.
</body>
</html>


When I the type the URL for that Web Page into a Link WebPart on SharePoint Online, I get this "error":
"There's no preview available for this link."

What do I need to change in the above code, to get the Link Web Part of SharePoint Online to display a preview?

10 Replies
Highlighted

BTW: I know this is off topic, but it would be nice if this forum:

  1. Allowed me to edit my posts
  2. Would pretty format my code
Highlighted

I'm still having problems with this.  As an example, if I post this URL in MS Teams:

I get a URL Preview:
teamsPic.png

but when I try to put the same URL in the Link WebPart of a SharePoint Online page, I get a "There's no preview available for this link." message:

linkeWebPartNoPreview.png
Highlighted

@Shawn Eary  Having the same issue, but it shows the preview on some SharePoint sites and not on others for the same exact link.

Highlighted

Exactly the same issue, no preview in Link Web part

What's the trick?

Highlighted
Solution

It seems like a bug - especially considering that the Use the Link web part page shows a preview image to an external site.

 

I'll report it to MS Support and report back.

 

Norm

Highlighted

Is the Link web part working for you now?

 

It seems to be for me.

Capture.PNG

Highlighted

@Norman Young- The Link WebPart is working for all of the links you just mentioned but it still doesn't work on our SharePoint Online site for these URLs:

https://www.google.com
https://www.uark.edu
https://www.bing.com
https://www.globalcyclingnetwork.com
https://www.codeproject.com

It should be noted that all of these URLs generate at least some part of a Preview in our instance of MS Teams.

Highlighted

Hi @Shawn Eary,

 

Odd behavior. The links you provided work for me. 

 

Thumbs up for GCN - I enjoy their content.

 

Capture.PNG

Highlighted

@Norman Young- Yes, I'm getting odd behavior.  The previews for all of those links are partially working for me now also IF I don't type a space after URL.   For some reasons, if I type in a space after the URL on each of those links, I get a "There's not preview available for the link." message.

This isn't serious since the workaround is to simply not put in a space at the end of the URL, but even when I don't put a space at the end of the URL, I still only get a limited quality preview.

For example in SharePoint with the Link Preview web part I get this limited preview:
limitedPreview.png
but in MS Teams, I get this much richer preview:
fullPreview.png

So I have two oddities.  The first is not serious since there is an easy workaround (just don't put a space at the end of the URL), the second is a little disappointing because the SharePoint Preview seems to be of a lower quality than the MS Teams preview.  The second problem is not necessarily restricted to https://www.uark.edu .  There are other URLs that also seems to display in "full" preview for me in MS Teams but "limited" preview for me in the SharePoint Link WebPart.

Highlighted

@Shawn Earythe Teams link preview does seem like a richer experience. Perhaps the SPO Link web part may get the same treatment down the road.

 

Glad to hear you have found a work around.

 

Norm