We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15d1d37 commit 51122c8Copy full SHA for 51122c8
1 file changed
js/script.js
@@ -3481,7 +3481,8 @@ Options -Indexes
3481
3482
const thisPage = function() {
3483
const url = globalThis.location.href;
3484
- return url.split('/')[3].split(".html")[0];
+ const parts = url.split('/');
3485
+ return parts[parts.length - 1].split(".html")[0];
3486
}
3487
3488
const loadTemplates = function(){
0 commit comments