diff --git a/app/static/js/ascroll.js b/app/static/js/ascroll.js index c4a8218..2a584b4 100755 --- a/app/static/js/ascroll.js +++ b/app/static/js/ascroll.js @@ -219,7 +219,7 @@ function renderAnnotation(config, video, ascroll, annotation) { if (annotation.title) { figcaption = `
${annotation.title}
` } - annotation.value = annotation.value.replace('src="/', `src="${baseURL}/`).replace('href="/', `href="${baseURL}/`) + annotation.value = annotation.value.replace(/src="\//g, `src="${baseURL}/`).replace(/href="\//g, `href="${baseURL}/`) div.innerHTML = `