« get me outta code hell

content, urls, client: /vgm-album/ - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/js/client/sidebar-search.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-05-28 13:39:22 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-05-28 13:39:22 -0300
commite036782607ed0e1d43df7f8d4643cc7d7671c359 (patch)
treed43721535d93bac885a9d29f85f09a0e02ef96af /src/static/js/client/sidebar-search.js
parent75e68aa1c8886e69d63a0e0b365fd6a7c309412c (diff)
content, urls, client: /vgm-album/
Diffstat (limited to 'src/static/js/client/sidebar-search.js')
-rw-r--r--src/static/js/client/sidebar-search.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/static/js/client/sidebar-search.js b/src/static/js/client/sidebar-search.js
index 94f1e4ef..3c6666e9 100644
--- a/src/static/js/client/sidebar-search.js
+++ b/src/static/js/client/sidebar-search.js
@@ -16,6 +16,7 @@ import {
   openFlash,
   openGroup,
   openTrack,
+  openVGMAlbum,
   rebase,
   templateContent,
 } from '../client-util.js';
@@ -1109,7 +1110,9 @@ function generateSidebarSearchResult(result, results) {
   switch (result.referenceType) {
     case 'album': {
       preparedSlots.href =
-        openAlbum(result.directory);
+        (result.data.classification === 'in-game vgm'
+          ? openVGMAlbum(result.directory)
+          : openAlbum(result.directory));
 
       preparedSlots.kindString =
         (result.data.classification === 'single'