« get me outta code hell

fix broken linkPathname-style links - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-04-06 13:40:12 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-04-06 13:40:12 -0300
commit1d0a1a3a087b46422fdcb0fa7ca111274d86c87b (patch)
treed2e9e9e32d2cb4dcdddfbce3c734c91deac5001e
parentab6f024f98195a55e5f6b8c7264e7a7eb918226e (diff)
fix broken linkPathname-style links
-rwxr-xr-xupd8.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js
index 123dbcc..e87eb23 100755
--- a/upd8.js
+++ b/upd8.js
@@ -290,7 +290,7 @@ const linkDirectory = (key, {expose = null, attr = null, ...conf} = {}) =>
         ...conf
     });
 
-const linkPathname = (key, conf) => linkHelper((pathname, {to}) => to(key, pathname), conf);
+const linkPathname = (key, conf) => linkHelper(({directory: pathname}, {to}) => to(key, pathname), conf);
 const linkIndex = (key, conf) => linkHelper((_, {to}) => to('localized.' + key), conf);
 
 const link = {