Skip to content

web_url does not work without ?web=1 query parameter #866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MattSom opened this issue Oct 28, 2022 · 1 comment
Open

web_url does not work without ?web=1 query parameter #866

MattSom opened this issue Oct 28, 2022 · 1 comment

Comments

@MattSom
Copy link

MattSom commented Oct 28, 2022

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?

@alejcas
Copy link
Member

alejcas commented Oct 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants