We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b1a683 commit af95846Copy full SHA for af95846
src/assets/CloudinaryFile.ts
@@ -283,7 +283,8 @@ class CloudinaryFile {
283
.replace(/\?/g, '%3F')
284
.replace(/=/g, '%3D');
285
286
- // True by default, has to be explicitly set to false to overwrite
+ // urlConfig.analytics is true by default, has to be explicitly set to false to overwrite
287
+ // Don't add analytics when publicId includes a '?' to not risk changing existing query params
288
if (this.urlConfig.analytics !== false && !(publicID.includes('?'))) {
289
return `${safeURL}?_a=${getSDKAnalyticsSignature(trackedAnalytics)}`;
290
} else {
0 commit comments