diff options
Diffstat (limited to 'docs/_layouts')
| -rw-r--r-- | docs/_layouts/user-guide.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/_layouts/user-guide.html b/docs/_layouts/user-guide.html index ad4ad2cd9..b3eba9404 100644 --- a/docs/_layouts/user-guide.html +++ b/docs/_layouts/user-guide.html @@ -160,7 +160,8 @@ var path = window.location.pathname; var pageName = path.split("/").pop(); var currentPageID = pageName.substr(0, pageName.lastIndexOf(".")); - + if (currentPageID.length == 0) + currentPageID = "index"; var tocLists = document.getElementsByClassName("toc_root_list"); for (var i = 0; i < tocLists.length; i++) { var tocList = tocLists[i]; |
