File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/packages/core/workspace/entity-detail Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { UmbSubmittableWorkspaceContextBase } from '../submittable/index.js' ;
2
2
import { UmbEntityWorkspaceDataManager } from '../entity/entity-workspace-data-manager.js' ;
3
- import { UMB_WORKSPACE_PATH_PATTERN } from '../paths.js' ;
4
3
import { UMB_ACTION_EVENT_CONTEXT } from '@umbraco-cms/backoffice/action' ;
5
4
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api' ;
6
5
import type { UmbEntityModel , UmbEntityUnique } from '@umbraco-cms/backoffice/entity' ;
@@ -153,9 +152,7 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
153
152
* @memberof UmbEntityWorkspaceContextBase
154
153
*/
155
154
protected _checkWillNavigateAway ( newUrl : string ) {
156
- const workspaceBasePath = UMB_WORKSPACE_PATH_PATTERN . generateLocal ( { entityType : this . getEntityType ( ) } ) ;
157
- const currentWorkspacePathIdentifier = '/' + workspaceBasePath + '/' + this . routes . getActiveLocalPath ( ) ;
158
- return ! newUrl . includes ( currentWorkspacePathIdentifier ) ;
155
+ return ! newUrl . includes ( this . routes . getActiveLocalPath ( ) ) ;
159
156
}
160
157
161
158
async #create( currentData : DetailModelType ) {
You can’t perform that action at this time.
0 commit comments