From 0710d9d2320bc0663eecff55f2ac6a28e03eb2f7 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 26 Oct 2025 08:23:38 -0300 Subject: client: fix dynamic links missing '/' at end Fixes navigating search results spamming the live-dev-server console with "[301] (trl. shash) ..."-type messages... finally! --- src/static/js/client-util.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/static/js/client-util.js b/src/static/js/client-util.js index 764c1480..74d63ad6 100644 --- a/src/static/js/client-util.js +++ b/src/static/js/client-util.js @@ -97,12 +97,12 @@ export function getVisuallyContainingElement(child) { const getLinkHref = (type, directory) => rebase(`${type}/${directory}`); */ -export const openAlbum = d => rebase(`album/${d}`); -export const openArtTag = d => rebase(`tag/${d}`); -export const openArtist = d => rebase(`artist/${d}`); -export const openFlash = d => rebase(`flash/${d}`); -export const openGroup = d => rebase(`group/${d}`); -export const openTrack = d => rebase(`track/${d}`); +export const openAlbum = d => rebase(`album/${d}/`); +export const openArtTag = d => rebase(`tag/${d}/`); +export const openArtist = d => rebase(`artist/${d}/`); +export const openFlash = d => rebase(`flash/${d}/`); +export const openGroup = d => rebase(`group/${d}/`); +export const openTrack = d => rebase(`track/${d}/`); // TODO: This should also use urlSpec. -- cgit 1.3.0-6-gf8a5