Skip to content

Commit f7e79a8

Browse files
committed
fix ssg encoded file path
1 parent 78bcab5 commit f7e79a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webui/ssg/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const Server = require('./server');
6161
throw new Error(`page ${url.href} not found: ${msg}`)
6262
}
6363

64-
let p = path.join('../dist', url.pathname)
64+
let p = path.join('../dist', decodeURIComponent(url.pathname))
6565
if (!fs.existsSync(path.dirname(p))){
6666
fs.mkdirSync(path.dirname(p), { recursive: true });
6767
}

0 commit comments

Comments
 (0)