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 0171731 commit 84e8341Copy full SHA for 84e8341
src/router/router.ts
@@ -76,7 +76,11 @@ export class MobxRouter implements IMobxRouter {
76
const url = this.createUrl(
77
{
78
...path,
79
- // This
+ // This is fixes bug with pathname endings /
80
+ // If location.pathname is /test-foo then after navigation to /test-foo#bar
81
+ // navigation back will not work
82
+ // If location.pathname is /test-foo/ then after navigation to /test-foo/#/bar
83
84
baseUrl: this.location.pathname,
85
},
86
this.type,
src/router/router.types.ts
@@ -12,6 +12,7 @@ export interface IMobxRouter {
12
13
/**
14
* The base URL of the router.
15
+ * !!! Works only for "browser" router type
16
*/
17
baseUrl?: string;
18
0 commit comments