mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-15 16:04:01 +00:00
repair history.back bug
This commit is contained in:
parent
ee16a419b1
commit
05ebc4936b
@ -126,7 +126,11 @@ class Wiki extends Component {
|
||||
|
||||
const hash = window.location.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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user