We've had users utilizing the Link option from a document library's New content menu as a way to add URLs to external resources. This creates a .url file in the library, which seems to work OK in many cases.
However, when these .url items are returned in search, the URL of the result is to the SharePoint location. Clicking on them triggers a security warning from the browser, as it downloads the .url file.
For example: user uses Link option to add "website.com" in Document Library. When this item is returned by search, its associated hyperlink is "company.sharepoint.com/site/DocumentLibrary/website.url", when logically, the hyperlink should be simply "website.com" for this type of content.
Is there a way to customize our search results to ensure the appropriate URL is returned by search for this type of content?
Well technically all that link is, is a shortcut file. The difference is document libraries render them by redirecting etc. and search just doesn’t process the mime time the same way. It would be nice if search utilized the same viewer when clicking those so they redirect.