diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2025-10-26 08:23:38 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2025-10-26 08:24:20 -0300 |
| commit | 0710d9d2320bc0663eecff55f2ac6a28e03eb2f7 (patch) | |
| tree | 6459c4a95c56aeeefc9f36e572298da78952245c /src/static | |
| parent | 2e7d0848e27e9074e2fb2d4b9844ece91684dbad (diff) | |
client: fix dynamic links missing '/' at end preview
Fixes navigating search results spamming the live-dev-server console with "[301] (trl. shash) ..."-type messages... finally!
Diffstat (limited to 'src/static')
| -rw-r--r-- | src/static/js/client-util.js | 12 |
1 files 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. |