From 840f15ee59754f778b86f2f41cc8e5ee4d5fb937 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sun, 16 Aug 2026 19:10:52 +0000 Subject: [PATCH] Use location.replace when the standalone page editor saves and closes Avoids leaving the /_/admin shell in the browser history stack. --- frontend/src/PageEditor.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/PageEditor.vue b/frontend/src/PageEditor.vue index 47ed579..486b71b 100644 --- a/frontend/src/PageEditor.vue +++ b/frontend/src/PageEditor.vue @@ -87,7 +87,9 @@ function save() { async function saveAndClose() { await save() // Reload so nav/sidebar changes apply, then the editor is gone. - if (props.standalone) location.href = `/${path.value}` + // In standalone mode replace the current history entry so the admin + // shell does not remain in the back-button stack. + if (props.standalone) location.replace(`/${path.value}`) else { dirty = false; emit('close'); location.reload() } }