The plugin admin button in the admin dashboard menu has lost its correct styling after a recent upgrade, as shown in an image provided by kgish. The issue is caused by a change in the app/assets/javascripts/admin/templates/admin.hbs file, where {{plugin-outlet "admin-menu" tagName="li"}} has been replaced with {{plugin-outlet name="admin-menu" connectorTagName="li"}}kgish.
kkish has found a workaround by unwrapping the HTML elements and using a JavaScript function to fix the styling issue. The Discourse team has been made aware of the issue, and it is hoped that a fix will be implemented soon kgish. cpradio believes this issue may be related to a recent discovery by sam.
api.onPageChange((url, title) => {
// --- ADMIN PAGE --- //
if (/\/admin\//.test(url)) {
// Admin pages start with "/admin/*"
let sel = '#admin-menu-pvda',
pvda_menu_item = $(sel);
if (pvda_menu_item.length) {
let li = pvda_menu_item.parent();
if (li.is("li")) {
let span = li.parent();
if (span.is("span")) {
li.unwrap();
}
}
}
}
...
}