File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,14 +14,10 @@ export class OrgAssetsService extends FileBrowserService {
1414 let filesQueryResult : FilesQueryResult = { items : [ ] , nextHref : null } ;
1515 try {
1616 // Retrieve Lib path from folder path
17- if ( folderPath . charAt ( 0 ) !== "/" ) {
18- folderPath = `/${ folderPath } ` ;
19- }
20- // Remove all the rest of the folder path
21- let libName = folderPath . replace ( `${ this . _orgAssetsLibraryServerRelativeSiteUrl } /` , "" ) ;
22- libName = libName . split ( "/" ) [ 0 ] ;
17+ let libName = folderPath ;
18+
2319 // Buil absolute library URL
24- const libFullUrl = this . buildAbsoluteUrl ( `${ this . _orgAssetsLibraryServerRelativeSiteUrl } / ${ libName } ` ) ;
20+ const libFullUrl = this . buildAbsoluteUrl ( `${ this . _orgAssetsLibraryServerRelativeSiteUrl } ${ libName } ` ) ;
2521
2622 let queryStringParams : string = "" ;
2723 // Do not pass FolderServerRelativeUrl as query parameter
You can’t perform that action at this time.
0 commit comments