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

Uses `getURL` to prepend the subfolder path if necessary.
This commit is contained in:
Renato Atilio
2025-10-28 11:29:29 -03:00
committed by GitHub
parent d82dc69d1d
commit de3be31f48
@@ -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() {