diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-11-25 11:52:50 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-11-25 11:52:50 +0100 |
commit | dc9ac0d0fffc6b78f7b781890b4dfbdc8de2d100 (patch) | |
tree | f615066ce0aeb9117a4db1ccdd26ababc40e23c9 | |
parent | 93b401ca9f7a78ca285ec6aaa038358b5aec5d2f (diff) | |
download | gitbook-dc9ac0d0fffc6b78f7b781890b4dfbdc8de2d100.zip gitbook-dc9ac0d0fffc6b78f7b781890b4dfbdc8de2d100.tar.gz gitbook-dc9ac0d0fffc6b78f7b781890b4dfbdc8de2d100.tar.bz2 |
Compile js
-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; |