Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dvho committed Jul 27, 2024
1 parent 1acb5fa commit 872caa5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,20 @@
document.open();
document.write(xhr.responseText);
document.close();
fixRelativePaths();
}
};
xhr.send();
}

//Preserve the original path, query string, and hash
// Function to fix relative paths for assets
function fixRelativePaths() {
var base = document.createElement('base');
base.href = '/';
document.head.appendChild(base);
}

// Preserve the original path, query string, and hash
var path = window.location.pathname;
var query = window.location.search;
var hash = window.location.hash;
Expand Down
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

0 comments on commit 872caa5

Please sign in to comment.