Merge branch 'release/15.0'
This commit is contained in:
@@ -75,6 +75,7 @@ import { UmbIsTrashedEntityContext } from '@umbraco-cms/backoffice/recycle-bin';
|
||||
import { UmbReadOnlyVariantStateManager } from '@umbraco-cms/backoffice/utils';
|
||||
import { UmbDataTypeItemRepositoryManager } from '@umbraco-cms/backoffice/data-type';
|
||||
import type { UmbRepositoryResponse } from '@umbraco-cms/backoffice/repository';
|
||||
import { UMB_APP_CONTEXT } from '@umbraco-cms/backoffice/app';
|
||||
|
||||
type EntityModel = UmbDocumentDetailModel;
|
||||
type EntityTypeModel = UmbDocumentTypeDetailModel;
|
||||
@@ -604,7 +605,9 @@ export class UmbDocumentWorkspaceContext
|
||||
// Tell the server that we're entering preview mode.
|
||||
await new UmbDocumentPreviewRepository(this).enter();
|
||||
|
||||
const previewUrl = new URL('preview', window.location.origin);
|
||||
const appContext = await this.getContext(UMB_APP_CONTEXT);
|
||||
|
||||
const previewUrl = new URL(appContext.getBackofficePath() + '/preview', appContext.getServerUrl());
|
||||
previewUrl.searchParams.set('id', unique);
|
||||
|
||||
if (culture && culture !== UMB_INVARIANT_CULTURE) {
|
||||
|
||||
Reference in New Issue
Block a user