diff --git a/src/meta/themes.js b/src/meta/themes.js index 0f22993c3f..d011bed707 100644 --- a/src/meta/themes.js +++ b/src/meta/themes.js @@ -104,9 +104,9 @@ Themes.get = function (callback) { // Minor adjustments for API output configObj.type = 'local'; if (configObj.screenshot) { - configObj.screenshot_url = 'css/previews/' + encodeURIComponent(configObj.id); + configObj.screenshot_url = nconf.get('relative_path') + '/css/previews/' + encodeURIComponent(configObj.id); } else { - configObj.screenshot_url = 'assets/images/themes/default.png'; + configObj.screenshot_url = nconf.get('relative_path') + '/assets/images/themes/default.png'; } next(null, configObj); } catch (err) { diff --git a/src/views/admin/partials/theme_list.tpl b/src/views/admin/partials/theme_list.tpl index aede3d71d0..26a226b803 100644 --- a/src/views/admin/partials/theme_list.tpl +++ b/src/views/admin/partials/theme_list.tpl @@ -1,7 +1,7 @@
data-css="{themes.css}">
-
+

{themes.name}