diff --git a/header.html b/header.html index 2699d83..af9febd 100644 --- a/header.html +++ b/header.html @@ -237,6 +237,18 @@ } document.addEventListener('DOMContentLoaded', main); + + function goUp() { + const urlParts = window.location.pathname.split('/'); + if (urlParts.length == 0) { + return + } + if (urlParts[urlParts.length - 1] == "") { + urlParts.pop(); + } + urlParts.pop(); + window.open(urlParts.join('/') + '/', '_self'); + } @@ -278,6 +292,7 @@