diff --git a/src/core/route/hash.js b/src/core/route/hash.js index d8870bea1..beba1f271 100644 --- a/src/core/route/hash.js +++ b/src/core/route/hash.js @@ -70,7 +70,7 @@ export function toURL (path, params) { route.query = merge({}, route.query, params) path = route.path + stringifyQuery(route.query) - path = path.replace(/\.md/g, '') + path = path.replace(/\.md(\?)|\.md$/, '$1') return cleanPath('#/' + path) }