Skip to content

Commit

Permalink
use push state
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslyngsoe authored and iOvergaard committed Dec 11, 2024
1 parent 66c13e5 commit eec7b01
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit eec7b01

Please sign in to comment.