Commit bc73a72
committed
fix(file-manager): persist folder and view in URL so refresh keeps current location
- Add updateUrlFromState() and call it from navigateToFolder and switchView
- Use goto(..., { replaceState: true }) with view and folderId query params
- Existing onMount already reads view and folderId from URL so refresh restores state1 parent 0d4a4d7 commit bc73a72
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
708 | 716 | | |
709 | 717 | | |
| 718 | + | |
710 | 719 | | |
711 | 720 | | |
712 | 721 | | |
| |||
715 | 724 | | |
716 | 725 | | |
717 | 726 | | |
| 727 | + | |
718 | 728 | | |
719 | 729 | | |
720 | 730 | | |
| |||
0 commit comments