Skip to content

Commit

Permalink
Update projects.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayad-Uddin-Tahsin authored Jun 21, 2024
1 parent b8e1fb0 commit afee51f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,6 @@
})
</script>

<script>
document.addEventListener("DOMContentLoaded", function() {
// Get the current URL
var currentUrl = window.location.href;

// Check if the URL ends with github.io and contains .html
if (currentUrl.includes("github.io") && currentUrl.endsWith(".html")) {
// Remove the .html extension
var newUrl = currentUrl.replace(/\.html$/, '');

// Redirect to the new URL
window.history.replaceState(null, null, newUrl);
}
});
</script>
</head>

<body>
Expand Down

0 comments on commit afee51f

Please sign in to comment.