Use canonical paths for editor and fix route transitions

This commit is contained in:
LeoVasanko committed 2026-05-07 02:18:55 +00:00
1 parent 6d7f44bd88
commit bf8a049b92
6 files changed
+61 -32

No files matched your search

+1 -1
View File
@@ -363,7 +363,7 @@ onUnmounted(() => {
clearInterval(modifiedTimer)
})
const editRoute = (path: string) =>
'/edit/' +
'/' +
path
.split('/')
.map(part => encodeURIComponent(part))
+1 -1
View File
@@ -454,7 +454,7 @@ onUnmounted(() => {
// Re-seed aspect ratios whenever docs update (e.g., ar patch from server)
watch(() => props.documents, seedFromDocs)
const editRoute = (path: string) =>
'/edit/' +
'/' +
path
.split('/')
.map(part => encodeURIComponent(part))