Skip to content

Commit 9dec486

Browse files
committed
fix hash history
1 parent 21da012 commit 9dec486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/vue-router.esm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2507,7 +2507,7 @@ var HashHistory = /*@__PURE__*/(function (History$$1) {
25072507
HashHistory.prototype.ensureURL = function ensureURL (push) {
25082508
var route = this.current[this.current.length - 1];
25092509
if (getHash() !== route.fullPath) {
2510-
var path = cleanPath(this.base + route.fullPath);
2510+
var path = `${window.location.origin + window.location.pathname}#${cleanPath(route.fullPath)}`;
25112511
pushState(path, this.current.map(function (r) { return r.fullPath; }), !push);
25122512
}
25132513
};

0 commit comments

Comments
 (0)