diff --git a/packages/frontend/src/boot/common.ts b/packages/frontend/src/boot/common.ts index 4becf32ab5..8e169e2c07 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にfolderPageのhashが含まれる場合は取り除く + if (window.location.hash.startsWith('#fp_')) { + 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/MkFolder.vue b/packages/frontend/src/components/MkFolder.vue index 9f5bc8da6c..c0e1801298 100644 --- a/packages/frontend/src/components/MkFolder.vue +++ b/packages/frontend/src/components/MkFolder.vue @@ -96,10 +96,12 @@ SPDX-License-Identifier: AGPL-3.0-only