Skip to content

A platform for community discussion. Free, open, simple.

FIX: admin theme grid preview link missing subfolder path (#35645)

Renato Atiliode3be31f48cb
diff --git a/frontend/discourse/admin/components/themes-grid-card.gjs b/frontend/discourse/admin/components/themes-grid-card.gjs
index 46c58455973..f26cf2fdce0 100644
--- a/frontend/discourse/admin/components/themes-grid-card.gjs
+++ b/frontend/discourse/admin/components/themes-grid-card.gjs
@@ -7,6 +7,7 @@ import DButton from "discourse/components/d-button";
import DropdownMenu from "discourse/components/dropdown-menu";
import icon from "discourse/helpers/d-icon";
import { popupAjaxError } from "discourse/lib/ajax-error";
+import getURL from "discourse/lib/get-url";
import { i18n } from "discourse-i18n";
import AdminConfigAreaCard from "admin/components/admin-config-area-card";
import DMenu from "float-kit/components/d-menu";
@@ -39,7 +40,7 @@ export default class ThemeCard extends Component {
}
get themePreviewUrl() {
- return `/admin/themes/${this.args.theme.id}/preview`;
+ return getURL(`/admin/themes/${this.args.theme.id}/preview`);
}
get destroyDisabled() {