Browse Source

HUE-8660 [assist] Support multiple # in file names for assist preview

Johan Ahlen 7 years ago
parent
commit
5d94781
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/apiHelper.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/apiHelper.js

@@ -543,7 +543,7 @@ var ApiHelper = (function () {
     if (clonedPath.length && clonedPath[0] === '/') {
       clonedPath.shift();
     }
-    url += clonedPath.join('/').replace(/#/, '%23') + '?compression=none&mode=text';
+    url += clonedPath.join('/').replace(/#/g, '%23') + '?compression=none&mode=text';
     url += '&offset=' + (options.offset || 0);
     url += '&length=' + (options.length || 118784);