Skip to content

Commit cd2f178

Browse files
committed
fix js.
1 parent 6b3c9a6 commit cd2f178

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/_layouts/stdlib-reference.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@
297297
event.stopPropagation();
298298
}
299299
var path = window.location.pathname;
300-
var pageName = path.split("/").pop();
300+
var firstSlash = path.indexOf("/");
301+
var pageName = path.substr(firstSlash);
301302
var currentPageID = pageName.substr(0, pageName.lastIndexOf("."));
302303
if (currentPageID.length == 0)
303304
currentPageID = "index";

0 commit comments

Comments
 (0)