Skip to content

Commit

Permalink
DEX-15580 - fix (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
vradulescu-bd authored Nov 21, 2023
1 parent 14db971 commit 30e786c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions solutions/scripts/lib-franklin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

/**
Expand Down

0 comments on commit 30e786c

Please sign in to comment.