Skip to content

Commit 594299f

Browse files
committed
fix: .md file extension regex
1 parent e9bbfd4 commit 594299f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/route/hash.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function toURL (path, params) {
7070

7171
route.query = merge({}, route.query, params)
7272
path = route.path + stringifyQuery(route.query)
73-
path = path.replace(/\.md/g, '')
73+
path = path.replace(/\.md(\?)|\.md$/, '$1')
7474

7575
return cleanPath('#/' + path)
7676
}

0 commit comments

Comments
 (0)