Skip to content

Commit

Permalink
pageurl 404 page script update
Browse files Browse the repository at this point in the history
  • Loading branch information
v4for authored Apr 24, 2024
1 parent 0b4d4ee commit 975c547
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ <h1 class="404text">404</h1>

<script>
var pageUrl = window.location.href;
var pageNotFound = pageUrl.split('/')[3];
document.getElementById('pageUrl').textContent = pageNotFound;
document.getElementById('pageUrl').textContent = pageUrl;
</script>
</body>
</html>
Expand Down

0 comments on commit 975c547

Please sign in to comment.