Skip to content

Commit

Permalink
fix: link render issue after page refreshing (#276)
Browse files Browse the repository at this point in the history
* fix scroll issue in IE

* add meta tag for IE browser

* fix link render issue after page refreshing
  • Loading branch information
laysent authored and QingWei-Li committed Oct 12, 2017
1 parent 69b2040 commit abd885e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/router/history/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit abd885e

Please sign in to comment.