« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/write/build-modes
diff options
context:
space:
mode:
Diffstat (limited to 'src/write/build-modes')
-rw-r--r--src/write/build-modes/live-dev-server.js1
-rw-r--r--src/write/build-modes/static-build.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js
index b018bc1c..389f5f4c 100644
--- a/src/write/build-modes/live-dev-server.js
+++ b/src/write/build-modes/live-dev-server.js
@@ -405,6 +405,7 @@ export async function go({
         languages,
         missingImagePaths,
         pagePath: servePath,
+        pagePathStringFromRoot: pathname.replace(/^\//, ''),
         thumbsCache,
         to,
         urls,
diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js
index 86e3da0f..c50db6b8 100644
--- a/src/write/build-modes/static-build.js
+++ b/src/write/build-modes/static-build.js
@@ -324,6 +324,7 @@ export async function go({
           languages,
           missingImagePaths,
           pagePath,
+          pagePathStringFromRoot: pathname,
           thumbsCache,
           to,
           urls,