Ignore fragment when figuring out sidebar items
This commit is contained in:
parent
59e6afcaad
commit
f92eac4acd
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ class MDBookSidebarScrollbox extends HTMLElement {
|
|||
connectedCallback() {
|
||||
this.innerHTML = '{{#toc}}{{/toc}}';
|
||||
// Set the current, active page, and reveal it if it's hidden
|
||||
let current_page = document.location.href.toString();
|
||||
let current_page = document.location.href.toString().split("#")[0];
|
||||
if (current_page.endsWith("/")) {
|
||||
current_page += "index.html";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue