File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,10 @@ export class OrgAssetsService extends FileBrowserService {
14
14
let filesQueryResult : FilesQueryResult = { items : [ ] , nextHref : null } ;
15
15
try {
16
16
// 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
+
23
19
// Buil absolute library URL
24
- const libFullUrl = this . buildAbsoluteUrl ( `${ this . _orgAssetsLibraryServerRelativeSiteUrl } / ${ libName } ` ) ;
20
+ const libFullUrl = this . buildAbsoluteUrl ( `${ this . _orgAssetsLibraryServerRelativeSiteUrl } ${ libName } ` ) ;
25
21
26
22
let queryStringParams : string = "" ;
27
23
// Do not pass FolderServerRelativeUrl as query parameter
You can’t perform that action at this time.
0 commit comments