Skip to content

Commit c6f0665

Browse files
committed
DrawIO: use clean paths
1 parent 848b791 commit c6f0665

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/web-app-draw-io/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default {
5656
}
5757
},
5858
created() {
59-
this.filePath = this.$route.params.filePath
59+
this.filePath = `/${this.$route.params.filePath.split('/').filter(Boolean).join('/')}`
6060
this.fileExtension = this.filePath.split('.').pop()
6161
this.checkPermissions()
6262
window.addEventListener('message', (event) => {

packages/web-app-draw-io/src/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ import App from './App.vue'
44
const routes = [
55
{
66
name: 'edit',
7-
path: '/edit/:filePath',
7+
path: '/edit/:filePath*',
88
components: {
99
fullscreen: App
1010
},
11-
meta: { hideHeadbar: true }
11+
meta: {
12+
hideHeadbar: true,
13+
patchCleanPath: true
14+
}
1215
}
1316
]
1417

0 commit comments

Comments
 (0)