mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
fix: link render issue after page refreshing (#276)
* fix scroll issue in IE * add meta tag for IE browser * fix link render issue after page refreshing
This commit is contained in:
parent
69b2040571
commit
abd885e133
@ -80,7 +80,9 @@ export class HashHistory extends History {
|
||||
path = route.path + stringifyQuery(route.query)
|
||||
path = path.replace(/\.md(\?)|\.md$/, '$1')
|
||||
|
||||
if (local) path = currentRoute + path
|
||||
if (local) {
|
||||
path = currentRoute.substr(0, currentRoute.indexOf('?')) + path
|
||||
}
|
||||
|
||||
return cleanPath('#/' + path)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user