mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-04-18 07:51:57 +08:00
@@ -81,7 +81,9 @@ export class HashHistory extends History {
|
||||
path = path.replace(/\.md(\?)|\.md$/, '$1')
|
||||
|
||||
if (local) {
|
||||
path = currentRoute.substr(0, currentRoute.indexOf('?')) + path
|
||||
const idIndex = currentRoute.indexOf('?')
|
||||
path =
|
||||
(idIndex > 0 ? currentRoute.substr(0, idIndex) : currentRoute) + path
|
||||
}
|
||||
|
||||
return cleanPath('#/' + path)
|
||||
|
||||
Reference in New Issue
Block a user