From 7805a7bd35887c2eda183adf60dddbde9f89189f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 16 Sep 2025 23:29:32 +0000 Subject: [PATCH] Add variable extraction for folder hash consistency Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> --- packages/frontend/src/components/MkFolderPage.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/MkFolderPage.vue b/packages/frontend/src/components/MkFolderPage.vue index 37cd4a749e..33816ba8c1 100644 --- a/packages/frontend/src/components/MkFolderPage.vue +++ b/packages/frontend/src/components/MkFolderPage.vue @@ -65,7 +65,8 @@ function popstateHandler(): void { onMounted(() => { // Push a new history state with a unique hash when the folder page opens - window.history.pushState(null, '', `#folder-${props.pageId}`); + const folderHash = `#folder-${props.pageId}`; + window.history.pushState(null, '', folderHash); // Listen for popstate events (browser back button) window.addEventListener('popstate', popstateHandler);