mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
repair history.back bug
This commit is contained in:
@@ -126,7 +126,11 @@ class Wiki extends Component {
|
|||||||
|
|
||||||
const hash = window.location.hash;
|
const hash = window.location.hash;
|
||||||
let fileUrl = siteRoot + 'wikis/' + slug + Utils.encodePath(filePath) + hash;
|
let fileUrl = siteRoot + 'wikis/' + slug + Utils.encodePath(filePath) + hash;
|
||||||
window.history.pushState({url: fileUrl, path: filePath}, filePath, fileUrl);
|
if (filePath === '/home.md') {
|
||||||
|
window.history.replaceState({url: fileUrl, path: filePath}, filePath, fileUrl);
|
||||||
|
} else {
|
||||||
|
window.history.pushState({url: fileUrl, path: filePath}, filePath, fileUrl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loadDirentList = (dirPath) => {
|
loadDirentList = (dirPath) => {
|
||||||
|
Reference in New Issue
Block a user