From 7090350d170c2ddfe01b93437541caa7e1577156 Mon Sep 17 00:00:00 2001 From: LaySent Date: Thu, 12 Oct 2017 22:46:48 +0800 Subject: [PATCH] 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 --- src/core/router/history/hash.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/router/history/hash.js b/src/core/router/history/hash.js index ce8335a4aa..014a11b157 100644 --- a/src/core/router/history/hash.js +++ b/src/core/router/history/hash.js @@ -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) }