python-o365
python-o365 copied to clipboard
web_url does not work without `?web=1` query parameter
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?
I’m not aware of this query parameter or what it does. O365 can append that to Folders if needed.