@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.
- package/lib/app/ReactApp.js +3 -1
- package/package.json +1 -1
- package/src/app/ReactApp.ts +3 -1
package/lib/app/ReactApp.js
CHANGED
|
@@ -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
|
|
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
package/src/app/ReactApp.ts
CHANGED
|
@@ -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
|
|
256
|
+
return url
|
|
257
|
+
.substring(pos + identifier.length - 1)
|
|
258
|
+
.replace('/index.html', '/'); // Router take / as start
|
|
257
259
|
}
|
|
258
260
|
|
|
259
261
|
/**
|