mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 13:26:34 +10: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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user