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 4e5ed4917d6f..11fa3c7b1fa9 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() {