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 += '' + '' + '' +