Skip to content

Commit abd885e

Browse files
laysentQingWei-Li
authored andcommitted
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
1 parent 69b2040 commit abd885e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/router/history/hash.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export class HashHistory extends History {
8080
path = route.path + stringifyQuery(route.query)
8181
path = path.replace(/\.md(\?)|\.md$/, '$1')
8282

83-
if (local) path = currentRoute + path
83+
if (local) {
84+
path = currentRoute.substr(0, currentRoute.indexOf('?')) + path
85+
}
8486

8587
return cleanPath('#/' + path)
8688
}

0 commit comments

Comments
 (0)