We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd9b4c5 commit aec4a5aCopy full SHA for aec4a5a
src/services/OrgAssetsService.ts
@@ -14,8 +14,14 @@ export class OrgAssetsService extends FileBrowserService {
14
let filesQueryResult: FilesQueryResult = { items: [], nextHref: null };
15
try {
16
// Retrieve Lib path from folder path
17
- let libName = folderPath;
18
-
+
+ if (folderPath.charAt(0) === "/") {
19
+ folderPath = folderPath.substring(1);
20
+ }
21
22
+ // Remove all the rest of the folder path
23
+ let libName = folderPath; //.replace(`${this._orgAssetsLibraryServerRelativeSiteUrl}/`, "");
24
+ //libName = libName.split("/")[0];
25
// Buil absolute library URL
26
const libFullUrl = this.buildAbsoluteUrl(`${this._orgAssetsLibraryServerRelativeSiteUrl}${libName}`);
27
0 commit comments