From dc9ac0d0fffc6b78f7b781890b4dfbdc8de2d100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Wed, 25 Nov 2015 11:52:50 +0100 Subject: [PATCH] Compile js --- theme/assets/website/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/assets/website/app.js b/theme/assets/website/app.js index e4353a3dc..46a921bc4 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;