use push state
This commit is contained in:
committed by
Jacob Overgaard
parent
66c13e5dae
commit
eec7b01f1c
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user