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:
Ted Johansson 2023-01-05 16:04:14 +08:00 committed by GitHub
parent 4070985316
commit 31389d713a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ function initialize(api) {
const tagName = params.tagName || "a";
const href =
tagName === "a"
? `href="${assignedPath}" data-auto-route="true"`
? `href="${getURL(assignedPath)}" data-auto-route="true"`
: "";
return `<${tagName} class="assigned-to discourse-tag simple" ${href}>
${icon}