SharePoint Online Search Result File URLs

%3CLINGO-SUB%20id%3D%22lingo-sub-2700074%22%20slang%3D%22en-US%22%3ESharePoint%20Online%20Search%20Result%20File%20URLs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2700074%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20we%20search%20from%20the%20Intranet%20Home%20Page%2C%20file%20URLs%20in%20the%20search%20results%20are%20inconsistent.%26nbsp%3B%20Sometimes%2C%20the%20URLs%20are%20direct%20to%20the%20file%2C%20like%20%3CA%20href%3D%22https%3A%2F%2F%26lt%3Btenant%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fsites%2F%3CSITENAME%3E%2FShared%2520Documents%2FGeneral%2Ffilename.docx%3C%2FSITENAME%3E%3C%2FA%3E%3C%2FP%3E%3CP%3EThose%20open%20in%20the%20local%20client%20(Edge)%20or%20are%20downloaded%20(Chrome).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESometimes%2C%20the%20URLs%20include%20a%20%22%3Fd%3D%3CID%3E%22%20attribute%2C%20like%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2F%26lt%3Btenant%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fsites%2F%3CSITENAME%3E%2FShared%2520Documents%2FGeneral%2Ffilename.docx%3Fd%3D%26lt%3B33-character-id%26gt%3B%3C%2FSITENAME%3E%3C%2FA%3E%3C%2FID%3E%3C%2FP%3E%3CP%3EThose%20open%20in%20the%20browser%20(which%20we%20prefer).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20we%20refresh%20and%20search%20again%20a%20few%20times%2C%20a%20URL%20which%20was%20previously%20direct%20might%20now%20have%20a%26nbsp%3B%22%3Fd%3D%3CID%3E%22%20attribute%20or%20vice%20versa.%3C%2FID%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EResearch%20revealed%20that%26nbsp%3B%22%3Fd%3D%3CID%3E%22%20attribute%20possibly%20has%20something%20to%20do%20with%20the%20document%20ID%20feature%20used%20in%20durable%20links.%26nbsp%3B%20The%20document%20ID%20feature%20is%20not%20currently%20activated%20in%20our%20site%20collection%20features.%3C%2FID%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20issue%20does%20not%20affect%20search%20from%20a%20team%20or%20communication%20site%20home%20page%20or%20a%20library.%26nbsp%3B%20URLs%20in%20those%20search%20results%20are%20not%20constructed%20in%20the%20same%20way%20and%20always%20open%20in%20the%20browser.%26nbsp%3B%26nbsp%3BWe%20would%20like%20files%20in%20search%20results%20from%20the%20intranet%20home%20site%20page%20to%20open%20consistently%20in%20the%20browser%20as%20they%20do%20from%20other%20sites%20and%20library%20searches.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20tell%20us%20why%20the%20URLs%20in%20intranet%20home%20page%20search%20results%20are%20not%20constructed%20in%20a%20consistent%20manner%20and%20if%20there%20is%20anything%20we%20can%20do%20to%20correct%20this%20issue%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EJim%20Rinke%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2700074%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

When we search from the Intranet Home Page, file URLs in the search results are inconsistent.  Sometimes, the URLs are direct to the file, like https://tenant.sharepoint.com/sites/<sitename>/Shared%20Documents/General/filename.docx

Those open in the local client (Edge) or are downloaded (Chrome).

 

Sometimes, the URLs include a "?d=<id>" attribute, like https://tenant.sharepoint.com/sites/<sitename>/Shared%20Documents/General/filename.docx?d=<33-charac...

Those open in the browser (which we prefer).

 

If we refresh and search again a few times, a URL which was previously direct might now have a "?d=<id>" attribute or vice versa.

 

Research revealed that "?d=<id>" attribute possibly has something to do with the document ID feature used in durable links.  The document ID feature is not currently activated in our site collection features.

 

This issue does not affect search from a team or communication site home page or a library.  URLs in those search results are not constructed in the same way and always open in the browser.  We would like files in search results from the intranet home site page to open consistently in the browser as they do from other sites and library searches.

 

Can anyone tell us why the URLs in intranet home page search results are not constructed in a consistent manner and if there is anything we can do to correct this issue?

 

Thanks,

Jim Rinke

0 Replies