Skip to content

Commit abe5f8d

Browse files
committed
fix urldecode on client
1 parent 1b01549 commit abe5f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

obsidian.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ function getAutoReloadScript() {
14651465
if (payload.type === 'nav' && !window.Reveal) {
14661466
location.reload();
14671467
} else if (payload.type === 'page') {
1468-
const current = location.pathname.replace(/^\\/+/, "");
1468+
const current = decodeURIComponent(location.pathname.replace(/^\\/+/, ""));
14691469
if (payload.files && payload.files.some(f => current.endsWith(f))) {
14701470
location.reload();
14711471
} else {

0 commit comments

Comments
 (0)