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 e4353a3..46a921b 100644 --- a/theme/assets/website/app.js +++ b/theme/assets/website/app.js @@ -24766,7 +24766,7 @@ state.update = function(dom) { state.root = url.resolve( location.protocol+'//'+location.host, path.dirname(path.resolve(location.pathname.replace(/\/$/, '/index.html'), state.basePath)) - ); + ).replace(/\/?$/, '/'); // Absolute root to the language (for multilingual book) state.bookRoot = state.innerLanguage? url.resolve(state.root, '..') : state.root; |