<% if (locals.children && children.length) { %>
- <%- include('../partials/childrenList', {children, kicker: template('playlist.childrenList.kicker', title)}) %>
+ <%- include('../partials/childrenList', {children, kicker: template('playlist.childrenList.kicker', title), formatUrl}) %>
<% } %>
- <%- include('../partials/footer', { pageType: 'document', topLevelFolder: url.split('/')[1] }) %>
+ <%- include('../partials/footer', { pageType: 'document', topLevelFolder: url.split('/')[1], formatUrl }) %>
diff --git a/layouts/playlists/leaf.ejs b/layouts/playlists/leaf.ejs
index ed0cf29a..ba8e8bce 100644
--- a/layouts/playlists/leaf.ejs
+++ b/layouts/playlists/leaf.ejs
@@ -1,23 +1,23 @@
-<%- include('../partials/head', {title}) %>
+<%- include('../partials/head', {title, formatUrl, pathPrefix}) %>
-
+
<%- template('playlist.nav.previous') %>
<%= previous.name %>
-
+
<%= next.name %>
<%- template('playlist.nav.next') %>
- <%- include('../partials/siblingList', {kicker: template('playlist.siblingList.heading', playlistName)}) %>
+ <%- include('../partials/siblingList', {kicker: template('playlist.siblingList.heading', playlistName, formatUrl)}) %>
- <%- include('../partials/footer', { pageType: 'playlist' }) %>
+ <%- include('../partials/footer', { pageType: 'playlist', formatUrl }) %>
-
\ No newline at end of file
+
diff --git a/package-lock.json b/package-lock.json
index c60f6a70..763baf7c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -55,8 +55,8 @@
"valid-url": "^1.0.9"
},
"engines": {
- "node": ">=10.x",
- "npm": ">=6.5.x"
+ "node": "16.x",
+ "npm": "8.3.x"
}
},
"node_modules/@babel/code-frame": {
diff --git a/public/scripts/main.js b/public/scripts/main.js
index 372748e8..ef710107 100644
--- a/public/scripts/main.js
+++ b/public/scripts/main.js
@@ -75,7 +75,7 @@ $(document).ready(function() {
var items = data.map(function(el) {
var item = el.doc;
var folder = (item.folder || {}).prettyName || ''; // lets not try to show a folder if there isn't one
- var path = item.path ? item.path : '#';
+ var path = item.path ? formatUrl(item.path) : '#';
return [
'