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 280c105 commit 11349faCopy full SHA for 11349fa
src/public/shared/UrlBuilder.ts
@@ -61,6 +61,7 @@ export class UrlBuilder {
61
// a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
62
// b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
63
// c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
64
+ // SYNC: FileUrlUtils.makeFileUrl (internal)
65
const filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
66
return `${cdnUrl}/${params.accountId}/${prefix}${filePathEncoded}`;
67
}
0 commit comments