@hmcts/media-viewer 4.2.47 → 4.2.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -8212,6 +8212,7 @@ class ConvertibleContentViewerComponent {
8212
8212
  }
8213
8213
  // todo move this to common place for media viewer and pdf
8214
8214
  extractDMStoreDocId(url) {
8215
+ url = url.split(/[?#]/)[0];
8215
8216
  if (url.includes('/documents/')) {
8216
8217
  url = url.split('/documents/')[1];
8217
8218
  }
@@ -8492,6 +8493,7 @@ class MediaViewerComponent {
8492
8493
  }
8493
8494
  // If secure mode is enabled (which adds "documentsv2" to the documentId), get rid of it
8494
8495
  extractDMStoreDocId(url) {
8496
+ url = url.split(/[?#]/)[0];
8495
8497
  url = url.includes('/documents/') ? url.split('/documents/')[1] : url;
8496
8498
  url = url.includes('/documentsv2/') ? url.split('/documentsv2/')[1] : url;
8497
8499
  return url.replace('/binary', '');