Use canonical paths for editor and fix route transitions
This commit is contained in:
1 parent
6d7f44bd88
commit
bf8a049b92
6 files changed
+61
-32
No files matched your search
@@ -363,7 +363,7 @@ onUnmounted(() => {
|
||||
clearInterval(modifiedTimer)
|
||||
})
|
||||
const editRoute = (path: string) =>
|
||||
'/edit/' +
|
||||
'/' +
|
||||
path
|
||||
.split('/')
|
||||
.map(part => encodeURIComponent(part))
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user