Skip to content
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

Site tab in FilePicker URL and Library #1129

Closed
Ofer-Gal opened this issue Feb 14, 2022 · 4 comments · Fixed by #1157
Closed

Site tab in FilePicker URL and Library #1129

Ofer-Gal opened this issue Feb 14, 2022 · 4 comments · Fixed by #1157
Labels
status:fixed-next-drop Issue will be fixed in upcoming release. type:bug
Milestone

Comments

@Ofer-Gal
Copy link

Category

[ ?] Bug

Version 3.6.0

When I use webAbsoluteUrl={${window.location.origin}/teams/${dpcRequest.projectNumber}} it works fine but I want to show the "General" folder under Shared%20Documents (we renamed it "Working Papers")
So I added defaultFolderAbsolutePath={${window.location.origin}/teams/${dpcRequest.projectNumber}/Shared%20Documents/General}
But it errors with : status='404'' dist/node_modules/@pnp/spfx-controls-react/lib/services/FileBrowserService.js:148 [FileBrowser._getListItems]: Something went wrong when executing request. Status='[HTTP]:404 - [CorrelationId]:885b20a0-a02b-1000-97bf-669cb5b3b6d9 [Version]:16.0.0.22126' and shows "This folder is empty" (it always have 6 folders)

What is the right way to set the default folder?

Also, I use webAbsoluteUrl with a state variable but the Picker has the URL cashed or something.
When I change the state to other URL, it does not change the site in the site tab.
Is there a way I can force the URL change?

Thank you

@ghost
Copy link

ghost commented Feb 14, 2022

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Feb 14, 2022
AJIXuMuK added a commit that referenced this issue Mar 9, 2022
@AJIXuMuK
Copy link
Collaborator

AJIXuMuK commented Mar 9, 2022

@Ofer-Gal - this has been fixed and will be included in the next release

@AJIXuMuK AJIXuMuK added status:fixed-next-drop Issue will be fixed in upcoming release. type:bug and removed Needs: Triage 🔍 labels Mar 9, 2022
@AJIXuMuK AJIXuMuK added this to the 3.7.0 milestone Mar 9, 2022
@Ofer-Gal
Copy link
Author

Thank you much! My users love you :-)
Will I need both defaultFolderAbsolutePath={${window.location.origin}/teams/${dpcRequest.projectNumber}/Shared%20Documents/General}
and
webAbsoluteUrl={${window.location.origin}/teams/${dpcRequest.projectNumber}} or just the first?

@AJIXuMuK
Copy link
Collaborator

Yes - you will need both. otherwise the api requests can be screwed up

@AJIXuMuK AJIXuMuK mentioned this issue Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:fixed-next-drop Issue will be fixed in upcoming release. type:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants