A platform for community discussion. Free, open, simple.
DEV: Update URL for `component-template-resolving` deprecation (#33194)
David Taylorfcf66dd8defb
diff --git a/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js b/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.jsindex 6b12285a340..c9464e60a13 100644--- a/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js+++ b/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js@@ -30,8 +30,13 @@ export const CRITICAL_DEPRECATIONS = ["discourse.plugin-outlet-classic-args-clash","discourse.decorate-plugin-outlet","component-template-resolving",+ "discourse.script-tag-hbs",];+const REPLACEMENT_URLS = {+ "component-template-resolving": "https://meta.discourse.org/t/370019",+};+if (DEBUG) {// used in system specsCRITICAL_DEPRECATIONS.push("fake-deprecation");@@ -108,6 +113,10 @@ export default class DeprecationWarningHandler extends Service {}notifyAdmin({ id, url }, source) {+ if (REPLACEMENT_URLS[id]) {+ url = REPLACEMENT_URLS[id];+ }+this.#adminWarned = true;let notice = i18n("critical_deprecation.notice") + " ";