Skip to content

Commit fcdd3a7

Browse files
Added auto redirect to .html
1 parent 37258a4 commit fcdd3a7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

scripts/scripts-dev.js

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ import {
2222
img,
2323
} from './dom-builder.js';
2424

25+
// if the page url does not have .html, then add .html to the url
26+
if (window.location.hostname.includes('lifesciences.danaher.com')) {
27+
if (!window.location.pathname.endsWith('.html')) {
28+
window.location.pathname += '.html';
29+
}
30+
}
31+
2532
const LCP_BLOCKS = ['breadcrumb', 'product-hero', 'carousel', 'columns']; // add your LCP blocks to the list
2633
const TEMPLATE_LIST = {
2734
blog: {

0 commit comments

Comments
 (0)