diff --git a/index.html b/index.html index 1da383e..3cc2a6d 100644 --- a/index.html +++ b/index.html @@ -375,7 +375,7 @@

For GS1 Digital Link

// remember to %-encode the element string before passing to DL Toolkit (not sure this is still necessary 2021-07-12) let res = getResolver(); - res = res.substring(0,res.length-1); + res=res.replace(/\/$/,""); let compDL = gs1dlt.compressGS1DigitalLink(dlURI, false, res, false, true, false); console.log(`Compressed URL is ${compDL}`);