FIX: Build correct assign tag links when using subfolders (#420)
The tag links added to the topic header extras aren't aware of subfolder usage. This change fixes that.
This commit is contained in:
parent
4070985316
commit
31389d713a
|
@ -641,7 +641,7 @@ function initialize(api) {
|
||||||
const tagName = params.tagName || "a";
|
const tagName = params.tagName || "a";
|
||||||
const href =
|
const href =
|
||||||
tagName === "a"
|
tagName === "a"
|
||||||
? `href="${assignedPath}" data-auto-route="true"`
|
? `href="${getURL(assignedPath)}" data-auto-route="true"`
|
||||||
: "";
|
: "";
|
||||||
return `<${tagName} class="assigned-to discourse-tag simple" ${href}>
|
return `<${tagName} class="assigned-to discourse-tag simple" ${href}>
|
||||||
${icon}
|
${icon}
|
||||||
|
|
Loading…
Reference in New Issue