We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21da012 commit 9dec486Copy full SHA for 9dec486
dist/vue-router.esm.js
@@ -2507,7 +2507,7 @@ var HashHistory = /*@__PURE__*/(function (History$$1) {
2507
HashHistory.prototype.ensureURL = function ensureURL (push) {
2508
var route = this.current[this.current.length - 1];
2509
if (getHash() !== route.fullPath) {
2510
- var path = cleanPath(this.base + route.fullPath);
+ var path = `${window.location.origin + window.location.pathname}#${cleanPath(route.fullPath)}`;
2511
pushState(path, this.current.map(function (r) { return r.fullPath; }), !push);
2512
}
2513
};
0 commit comments