Skip to content

Commit

Permalink
Updated to avoid issue with homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
davenichols-DHLS committed Dec 28, 2024
1 parent fcdd3a7 commit 5c8bec3
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 5c8bec3

Please sign in to comment.