diff --git a/src/annotationForm/AnnotationFormFooter.js b/src/annotationForm/AnnotationFormFooter.js index 42b301fd105298b7aef326ba08bd4907c6422d2c..f7beb0e2fb1713bb8a77806435b3d4c2d2fd21ab 100644 --- a/src/annotationForm/AnnotationFormFooter.js +++ b/src/annotationForm/AnnotationFormFooter.js @@ -61,6 +61,12 @@ function AnnotationFormFooter({ const annotationText = (!textBody.length && target.t) ? `${secondsToHMS(tstart)} -> ${secondsToHMS(tend)}` : textBody; + let id = annotation?.id ? annotation.id : `https://${uuid()}`; + id = id.split('#')[0]; + if (manifestNetwork) { + id = `${id}#${manifestNetwork}`; + } + const annotationToSaved = { body: { id: null, // Will be updated after @@ -69,7 +75,7 @@ function AnnotationFormFooter({ value: annotationText, }, drawingState: JSON.stringify(drawingState), - id: (annotation && annotation.id) || `${uuid()}`, + id, manifestNetwork, motivation: 'commenting', target: null,