mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 03:35:32 -05:00
FIX: admin theme grid preview link missing subfolder path (#35645)
Uses `getURL` to prepend the subfolder path if necessary.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user