FIX: Restore support for normalized plugin routes under admin/ (#35598)

Following 37648149c4, it became impossible
to resolve some deprecations with plugin admin templates. This commit
fixes that problem, and also resolves the deprecation for the
chat-integration plugin.
This commit is contained in:
David Taylor
2025-10-27 09:19:06 +00:00
committed by GitHub
parent bb8b5c349e
commit 51501cb281
4 changed files with 9 additions and 1 deletions
+1
View File
@@ -387,6 +387,7 @@ export function buildResolver(baseName) {
let adminParsedName = this.parseName(`template:${namespaced}`);
const candidates = [
[parsedName, "discourse/admin/templates/"],
[parsedName, "admin/templates/"],
[adminParsedName, "admin/templates/"],
[adminParsedName, "discourse/admin/templates/"],
[adminParsedName, "admin/"],
@@ -431,6 +431,13 @@ module("Unit | Ember | resolver", function (hooks) {
}
);
lookupTemplate(
assert,
"template:admin/plugin-template",
"discourse/plugins/my-plugin/discourse/templates/admin/plugin-template",
"looks up templates in plugin discourse namespace with correct name"
);
withSilencedDeprecations(
"discourse.deprecated-resolver-normalization",
() => {