python-o365 icon indicating copy to clipboard operation
python-o365 copied to clipboard

web_url does not work without `?web=1` query parameter

Open MattSom opened this issue 3 years ago • 1 comments

As title says I can get the web_url property of a DriveItem. This is an actual url that can be clicked and - if authenticated - the active browser will open the file on the sharepoint dashboard. But this web_url only works for File typed DriveItems (did not try the others excluding Folder).

If the drive item is a Folder it leads to an error page, "This site can’t be reached". But if I append the "?web=1" query parameter to this web_url string it works and opens the folder on sharepoint via browser.

Is this intended? Shouldn't the web_url also contain this parameter in case of folders at least?

MattSom avatar Oct 28 '22 08:10 MattSom

I’m not aware of this query parameter or what it does. O365 can append that to Folders if needed.

alejcas avatar Oct 28 '22 13:10 alejcas