diff --git a/solutions/scripts/lib-franklin.js b/solutions/scripts/lib-franklin.js index 057d9c1b8..5edaf4de3 100644 --- a/solutions/scripts/lib-franklin.js +++ b/solutions/scripts/lib-franklin.js @@ -935,10 +935,6 @@ export function setup() { export function decorateCanonical(doc) { const linkRelCanonical = doc.head.querySelector('[rel="canonical"]'); linkRelCanonical.href = linkRelCanonical.href.replace('https://', 'https://www.'); - const lastChar = linkRelCanonical.href.slice(-1); - if (lastChar === '/') { - linkRelCanonical.href = linkRelCanonical.href.slice(0, -1); - } } /**