Requirement: Open documents in browser in SharePoint Online.
How to Force Documents open in Browser instead of the Client Application?
The “Open Documents in Client Applications by Default” feature and the library settings “Opening Documents in the Browser” decides whether a document should be opened in the web browser or in a client application more here: How to Open Documents in Client Applications by Default in SharePoint Online?
What if you want to force opening a document in the web browser? E.g. PPTX or Docx in ? Well, here is the trick: Just append “?web=1” to the file URL! Obtain the link to the file and add ?web=1 parameter to it, so that the file opens in the Browser directly.
So, Here, the direct link to open my document in the browser is: https://crescent.sharepoint.com/sites/Marketing/Documents/SharePoint-Training.pptx?web=1
You can also select the file, click on “Open” dropdown and then select “Open in Browser” from the toolbar to open a document in browser!