Skip to content

Commit

Permalink
Merge pull request #1337 from hlxsites/1309-html-rewrite
Browse files Browse the repository at this point in the history
1309-html-rewrite
  • Loading branch information
davenichols-DHLS authored Dec 19, 2024
2 parents 37258a4 + fcdd3a7 commit 5cd0ca4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions scripts/scripts-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ import {
img,
} from './dom-builder.js';

// if the page url does not have .html, then add .html to the url
if (window.location.hostname.includes('lifesciences.danaher.com')) {
if (!window.location.pathname.endsWith('.html')) {
window.location.pathname += '.html';
}
}

const LCP_BLOCKS = ['breadcrumb', 'product-hero', 'carousel', 'columns']; // add your LCP blocks to the list
const TEMPLATE_LIST = {
blog: {
Expand Down
Loading

0 comments on commit 5cd0ca4

Please sign in to comment.