From 6a74589e31d274e7e1df983ad73a082c12549d50 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 29 Mar 2016 16:55:30 -0400 Subject: [PATCH] closes https://github.com/NodeBB/nodebb-theme-persona/issues/250 --- public/src/modules/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js index dd15d0dab6..3c964b819c 100644 --- a/public/src/modules/helpers.js +++ b/public/src/modules/helpers.js @@ -100,13 +100,13 @@ return style.join('; ') + ';'; }; - helpers.generateChildrenCategories = function(category, relative_path) { + helpers.generateChildrenCategories = function(category) { var html = ''; category.children.forEach(function(child) { if (!child) { return; } - var link = child.link ? child.link : ('/category/' + child.slug); + var link = child.link ? child.link : (config.relative_path + '/category/' + child.slug); html += '' + '' + '' +