From ed253ce3de7fcf0b733268c00a63c573150c9ccd Mon Sep 17 00:00:00 2001 From: Doris Lam Date: Wed, 14 Sep 2022 16:58:30 -0700 Subject: [PATCH] fix document delete, don't add host to user uploaded images in editor --- src/services/TreeService.js | 1 + src/services/URLService.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/TreeService.js b/src/services/TreeService.js index def526399..8828ed966 100644 --- a/src/services/TreeService.js +++ b/src/services/TreeService.js @@ -666,5 +666,6 @@ function TreeApi($timeout, RootScopeService, EventService, TreeService) { this.on_treeData_change = on_treeData_change; this.on_initialSelection_change = on_initialSelection_change; this.expandPathToSelectedBranch = expandPathToSelectedBranch; + this.get_parent_branch = get_parent; } \ No newline at end of file diff --git a/src/services/URLService.js b/src/services/URLService.js index f8f2ae84c..f2b94193f 100644 --- a/src/services/URLService.js +++ b/src/services/URLService.js @@ -398,7 +398,7 @@ function urlService(baseUrl, mmsUrl) { */ var getArtifactEmbedURL = function(reqOb,artifactExtension) { var ext = (artifactExtension !== undefined) ? artifactExtension : reqOb.artifactExtension; - var r = root + '/projects/' + reqOb.projectId + '/refs/' + reqOb.refId + '/elements/' + reqOb.elementId + '/' + ext; + var r = '/projects/' + reqOb.projectId + '/refs/' + reqOb.refId + '/elements/' + reqOb.elementId + '/' + ext; return addVersion(r, reqOb.commitId); };