mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 11:40:49 +00:00
Add variable extraction for folder hash consistency
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user