@etsoo/appscript 1.1.77 → 1.1.78
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/cjs/app/CoreApp.js
CHANGED
|
@@ -746,7 +746,7 @@ class CoreApp {
|
|
|
746
746
|
return url;
|
|
747
747
|
// From relative root, like home:/react/, url: /about => /react/about
|
|
748
748
|
if (url.startsWith('/'))
|
|
749
|
-
return home + url.
|
|
749
|
+
return home + url.substring(1);
|
|
750
750
|
const pathname = window.location.pathname;
|
|
751
751
|
// Relative
|
|
752
752
|
const pos = pathname.indexOf(home);
|
package/lib/cjs/state/User.d.ts
CHANGED
package/lib/mjs/app/CoreApp.js
CHANGED
|
@@ -743,7 +743,7 @@ export class CoreApp {
|
|
|
743
743
|
return url;
|
|
744
744
|
// From relative root, like home:/react/, url: /about => /react/about
|
|
745
745
|
if (url.startsWith('/'))
|
|
746
|
-
return home + url.
|
|
746
|
+
return home + url.substring(1);
|
|
747
747
|
const pathname = window.location.pathname;
|
|
748
748
|
// Relative
|
|
749
749
|
const pos = pathname.indexOf(home);
|
package/lib/mjs/state/User.d.ts
CHANGED
package/package.json
CHANGED
package/src/app/CoreApp.ts
CHANGED
|
@@ -1375,7 +1375,7 @@ export abstract class CoreApp<
|
|
|
1375
1375
|
if (home === '') return url;
|
|
1376
1376
|
|
|
1377
1377
|
// From relative root, like home:/react/, url: /about => /react/about
|
|
1378
|
-
if (url.startsWith('/')) return home + url.
|
|
1378
|
+
if (url.startsWith('/')) return home + url.substring(1);
|
|
1379
1379
|
|
|
1380
1380
|
const pathname = window.location.pathname;
|
|
1381
1381
|
|