diff options
-rw-r--r-- | theme/assets/website/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/assets/website/app.js b/theme/assets/website/app.js index 4f8de39..ea8144f 100644 --- a/theme/assets/website/app.js +++ b/theme/assets/website/app.js @@ -24749,7 +24749,7 @@ state.update = function(dom) { // Absolute url to the root of the book state.root = url.resolve( location.protocol+'//'+location.host, - path.dirname(path.resolve(location.pathname, state.basePath)) + path.dirname(path.resolve(location.pathname.replace(/\/$/, '/index.html'), state.basePath)) ); }; |