@etsoo/react 1.5.11 → 1.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,7 +112,9 @@ export class ReactApp extends CoreApp {
112
112
  const pos = url.indexOf(identifier);
113
113
  if (pos === -1)
114
114
  return '/';
115
- return url.substring(pos + identifier.length - 1);
115
+ return url
116
+ .substring(pos + identifier.length - 1)
117
+ .replace('/index.html', '/'); // Router take / as start
116
118
  }
117
119
  /**
118
120
  * Override alert action result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.5.11",
3
+ "version": "1.5.12",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -253,7 +253,9 @@ export class ReactApp<
253
253
  const pos = url.indexOf(identifier);
254
254
  if (pos === -1) return '/';
255
255
 
256
- return url.substring(pos + identifier.length - 1);
256
+ return url
257
+ .substring(pos + identifier.length - 1)
258
+ .replace('/index.html', '/'); // Router take / as start
257
259
  }
258
260
 
259
261
  /**