From eec7b01f1c1248fef4fd69dc9b83a9958ef4e0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 11 Dec 2024 15:53:57 +0100 Subject: [PATCH] use push state --- .../block/block/context/block-entry.context.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block/context/block-entry.context.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block/context/block-entry.context.ts index 4e5ed4917d..11fa3c7b1f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/block/block/context/block-entry.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/block/block/context/block-entry.context.ts @@ -625,10 +625,18 @@ export abstract class UmbBlockEntryContext< //activate public edit() { - window.location.href = this.#generateWorkspaceEditContentPath(this.#workspacePath.value, this.getContentKey()); + window.history.pushState( + {}, + '', + this.#generateWorkspaceEditContentPath(this.#workspacePath.value, this.getContentKey()), + ); } public editSettings() { - window.location.href = this.#generateWorkspaceEditSettingsPath(this.#workspacePath.value, this.getContentKey()); + window.history.pushState( + {}, + '', + this.#generateWorkspaceEditSettingsPath(this.#workspacePath.value, this.getContentKey()), + ); } async requestDelete() {