diff options
Diffstat (limited to 'theme/javascript/state.js')
-rw-r--r-- | theme/javascript/state.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/javascript/state.js b/theme/javascript/state.js index e384e36..ef1eb04 100644 --- a/theme/javascript/state.js +++ b/theme/javascript/state.js @@ -27,7 +27,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; |