mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
parent
26cc466420
commit
91d6337936
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user