diff --git a/packages/frontend/src/boot/common.ts b/packages/frontend/src/boot/common.ts index 4becf32ab5..b5e6aebdc2 100644 --- a/packages/frontend/src/boot/common.ts +++ b/packages/frontend/src/boot/common.ts @@ -106,6 +106,11 @@ export async function common(createVue: () => Promise>) { window.history.replaceState(null, '', window.location.href.replace('#pswp', '')); } + // URLに#folder-を含む場合は取り除く(FolderPageView用) + if (window.location.hash.startsWith('#folder-')) { + window.history.replaceState(null, '', window.location.href.replace(window.location.hash, '')); + } + // 一斉リロード reloadChannel.addEventListener('message', path => { if (path !== null) window.location.href = path; diff --git a/packages/frontend/src/components/MkFolderPage.vue b/packages/frontend/src/components/MkFolderPage.vue index 21700c9dd8..33816ba8c1 100644 --- a/packages/frontend/src/components/MkFolderPage.vue +++ b/packages/frontend/src/components/MkFolderPage.vue @@ -27,7 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only