From 03dd9dd49bed89bdc8a38e908e3ef57b18ee8973 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 17 Apr 2018 08:58:44 -0400 Subject: [PATCH] fixed up relative pathing issue in ACP uploads again --- src/controllers/admin/uploads.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/admin/uploads.js b/src/controllers/admin/uploads.js index 61d98960c6..63ab33a801 100644 --- a/src/controllers/admin/uploads.js +++ b/src/controllers/admin/uploads.js @@ -68,7 +68,9 @@ function buildBreadcrumbs(currentFolder) { var dir = path.join(currentPath, part); crumbs.push({ text: part || 'Uploads', - url: part ? '/admin/manage/uploads?dir=' + dir : '/admin/manage/uploads', + url: part + ? (nconf.get('relative_path') + '/admin/manage/uploads?dir=' + dir) + : nconf.get('relative_path') + '/admin/manage/uploads', }); currentPath = dir; });