From 4a023f0c9333af83828e1f38a5e834310dd5c9bd Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 7 Jul 2020 11:32:20 -0400 Subject: [PATCH] FIX: Deprecations --- common/header.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/header.html b/common/header.html index b08d59e..a85e49c 100644 --- a/common/header.html +++ b/common/header.html @@ -6,6 +6,7 @@ const { iconHTML, iconNode } = require("discourse-common/lib/icon-library"); const { isRTL } = require("discourse/lib/text-direction"); const { h } = require("virtual-dom"); + const getURL = require('discourse-common/lib/get-url').default; var get = Em.get, escapeExpression = Handlebars.Utils.escapeExpression; @@ -36,7 +37,7 @@ let restricted = get(category, "read_restricted"); let url = opts.url ? opts.url - : Discourse.getURL("/c/") + Category.slugFor(category); + : getURL("/c/") + Category.slugFor(category); let href = opts.link === false ? "" : url; let tagName = opts.link === false || opts.link === "false" ? "span" : "a"; let extraClasses = opts.extraClasses ? " " + opts.extraClasses : "";