use push state

This commit is contained in:
Niels Lyngsø
2024-12-11 15:53:57 +01:00
committed by Jacob Overgaard
parent 66c13e5dae
commit eec7b01f1c

View File

@@ -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() {