Skip to content

Commit

Permalink
Merge pull request #1341 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 28, 2024
2 parents 2bd9e21 + 5c8bec3 commit 30ac40c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/scripts-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {

// 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')) {
if (!window.location.pathname.endsWith('.html') && window.location.pathname !== '/') {
window.location.pathname += '.html';
}
}
Expand Down
Loading

0 comments on commit 30ac40c

Please sign in to comment.