We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a047a44 commit a645ce2Copy full SHA for a645ce2
src/router/router.ts
@@ -73,7 +73,13 @@ export class MobxRouter implements IMobxRouter {
73
74
protected hashNavigate(to: RouterToConfig, options?: RouterNavigateParams) {
75
const path = this.createPath(to);
76
- const url = this.createUrl(path, this.type);
+ const url = this.createUrl(
77
+ {
78
+ ...path,
79
+ baseUrl: this.location.pathname,
80
+ },
81
+ this.type,
82
+ );
83
const state = options?.state ?? null;
84
85
this.wrapInViewTransition(() => {
0 commit comments