Skip to content

Node.js based forum software built for the modern web

test: subfolder in category link

Barış Soner Uşaklı407b0cc6acc2
diff --git a/test/template-helpers.js b/test/template-helpers.js
index 8e95e66c8c..fa72cbdced 100644
--- a/test/template-helpers.js
+++ b/test/template-helpers.js
@@ -107,7 +107,7 @@ describe('helpers', () => {
imageClass: 'auto',
name: 'Category 1',
}, 'a', ''),
- `<a href="/category/undefined" class="badge px-1 text-truncate text-decoration-none " style="color: #00ff00;background-color: #ff0000;border-color: #ff0000!important; max-width: 70vw;">\n\t\t\t\n\t\t\tCategory 1\n\t\t</a>`
+ `<a href="${nconf.get('relative_path')}/category/undefined" class="badge px-1 text-truncate text-decoration-none " style="color: #00ff00;background-color: #ff0000;border-color: #ff0000!important; max-width: 70vw;">\n\t\t\t\n\t\t\tCategory 1\n\t\t</a>`
);
assert.strictEqual(
helpers.buildCategoryLabel({