SharePoint server on-premise modern search page issue with documents result

SABA365 26 Reputation points
2023-09-27T12:59:33.15+00:00

Hi,

I have SharePoint server subscription edition with June 2023 CU. The farm contains office online server to enable view and edit documents in browser.

I am able to open documents in browser, if I browse them from document library and classic search page. I have noticed that documents url are rendered with 'wopiframe.aspx'. e.g. https://myfqdn/sites/projectA/_layouts/15/WopiFrame.aspx?sourcedoc=%7D9431234E-4E21-1235-F56C-7111CFC169A9%7D&file=report.xlsx&action=default&DefaultItemOpen=1

But the issue is in modern search page. When I search for documents the links are showing actual location of document. e.g. https://myfqfn/sites/projectA/Report.xlsx

This is causing documents to download on computer instead opening it in browser.

Is there way to to fix open action in modern search page?

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,228 questions
Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
587 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ling Zhou_MSFT 13,260 Reputation points Microsoft Vendor
    2023-09-28T05:51:22.93+00:00

    Hi @SABA365,

    Thank you for posting in this community.

    If you open SharePoint documents in Office Web Apps, then the documents URL will be rendered with 'wopiframe.aspx'. But the document URL in SharePoint search page is the real path of the document. Clicking on the link here does not assume that you are trying to open the file using the Office web app, so the file will be downloaded directly.

    Please try the following settings to see if you can get the file to open in your browser:

    1.Go to Library settings->Advanced settings->Opening Documents in the Browser. Select "Open in the browser".

    2.Please try to add "?web=1" after the documents' URL.

    For example: https://myfqfn/sites/projectA/Report.xlsx?web=1

    3.Maybe something is wrong with Office Online Server. You can disconnect SharePoint Server from Office Online Server and then reconfigure SharePoint Server to use Office Online Server.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Paul WILLS 0 Reputation points
    2024-02-23T12:38:25.37+00:00

    Is there an answer to this issue?? We have the same issue whilst trying to upgrade to SharePoint Subscription and is causing us to freeze the project.

    0 comments No comments