parent
26cc466420
commit
91d6337936
1 changed files with 3 additions and 1 deletions
|
|
@ -81,7 +81,9 @@ export class HashHistory extends History {
|
||||||
path = path.replace(/\.md(\?)|\.md$/, '$1')
|
path = path.replace(/\.md(\?)|\.md$/, '$1')
|
||||||
|
|
||||||
if (local) {
|
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)
|
return cleanPath('#/' + path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue