SharePoint Online - .url Files Don't Open in Browser

Copper Contributor

I made a custom SPFX command set extension that can be used for making links to files. The extension creates a .url file which opens in the browser. Here is an example of one of the files:

 

[InternetShortcut]
URL=https://bluemetal.sharepoint.com/sites/stephendevShared Documents/ProjectName1/Agreements/meeting-notes10-10-10.docx?web=1

 

 

It works perfectly in my dev environment, but in the production environment the .url files fail to open, they just get downloaded instead. I have also noticed that if I download the file and reupload them, they open fine in the browser.

 

I have no idea why this is happening and would appreciate any help.

2 Replies

I have the same issue, no idea whats causing it

@StephenBradley Did you ever find a solution to this? We're finding that .url files don't open in a browser only on classic site collections. Seems to work fine on modern ones.