diff --git a/toolkit/mozapps/extensions/content/extensions.js b/toolkit/mozapps/extensions/content/extensions.js index 01328c880444..a98c0b389eee 100644 --- a/toolkit/mozapps/extensions/content/extensions.js +++ b/toolkit/mozapps/extensions/content/extensions.js @@ -3153,8 +3153,11 @@ var gDetailView = { // If the search category isn't selected then make sure to select the // correct category - if (gCategories.selected != "addons://search/") - gCategories.select("addons://list/" + aAddon.type); + if (gCategories.selected != "addons://search/") { + let category = (isDisabledLegacy(aAddon) || isDisabledUnsigned(aAddon)) ? + "addons://legacy" : `addons://list/${aAddon.type}`; + gCategories.select(category); + } document.getElementById("detail-name").textContent = aAddon.name; var icon = AddonManager.getPreferredIconURL(aAddon, 64, window);