summaryrefslogtreecommitdiffstats
path: root/theme/assets/website/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'theme/assets/website/app.js')
-rw-r--r--theme/assets/website/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/theme/assets/website/app.js b/theme/assets/website/app.js
index 1230ac8..e8d80d9 100644
--- a/theme/assets/website/app.js
+++ b/theme/assets/website/app.js
@@ -24736,9 +24736,13 @@ state.update = function(dom) {
state.level = $book.data('level');
state.basePath = $book.data('basepath');
state.revision = $book.data('revision');
+ state.filepath = $book.data('filepath');
// Absolute url to the root of the book
- state.root = url.resolve(location.origin, path.dirname(path.resolve(location.pathname, state.basePath)));
+ state.root = url.resolve(
+ location.protocol+'//'+location.host,
+ path.dirname(path.resolve(location.pathname, state.basePath))
+ );
};
state.update($);