diff --git a/deck-frontend/deck-v4.6.html b/deck-frontend/deck-v4.6.html
index 97c8260..5f417ca 100644
--- a/deck-frontend/deck-v4.6.html
+++ b/deck-frontend/deck-v4.6.html
@@ -878,8 +878,16 @@ const Utils = {
},
getCategory(tag) {
- // Category is determined by the current base being viewed
- return State.get("base");
+ // Category is determined by the tag's set_hst (parent category MRF)
+ const setHst = tag.set_hst;
+ if (!setHst) return State.get("base");
+
+ // Look up the category tag in hstTags
+ const hstTags = State.get("hstTags");
+ const categoryTag = hstTags.find(t => t.mrf === setHst);
+
+ // Return the ref of the category tag, or fall back to base
+ return categoryTag?.ref || State.get("base");
},
updateHash() {