Rollup merge of #24790 - jooert:fix24774, r=steveklabnik
Fixes #24774. r? @steveklabnik
This commit is contained in:
commit
4fae8fb61e
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
|||
}
|
||||
|
||||
for (var i = 0; i < toc.length; i++) {
|
||||
if (toc[i].attributes['href'].value === href) {
|
||||
if (toc[i].attributes['href'].value.split('/').pop() === href) {
|
||||
var nav = document.createElement('p');
|
||||
if (i > 0) {
|
||||
var prevNode = toc[i-1].cloneNode(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue