diff --git a/public/src/admin/manage/category.js b/public/src/admin/manage/category.js index 33777df74b..7a7718c7ad 100644 --- a/public/src/admin/manage/category.js +++ b/public/src/admin/manage/category.js @@ -268,7 +268,7 @@ define('admin/manage/category', [ api.put('/categories/' + ajaxify.data.category.cid, { parentCid: parentCid, }).then(() => { - api.get(`/category/${parentCid}`).then(function (parent) { + api.get(`/categories/${parentCid}`, {}).then(function (parent) { if (parent && parent.icon && parent.name) { var buttonHtml = ' ' + parent.name; $('button[data-action="changeParent"]').html(buttonHtml).parent().removeClass('hide');