Skip to content

Commit 187da3c

Browse files
Snapshot notice link not navigating as expected #4194 (#4686)
1 parent e4f134c commit 187da3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugins/notebook/snapshot.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ export default class Snapshot {
110110
}
111111

112112
return () => {
113-
window.location.href = window.location.origin + url;
113+
const path = window.location.href.split('#');
114+
window.location.href = path[0] + url;
114115
};
115116
}
116117
}

0 commit comments

Comments
 (0)