@etsoo/appscript 1.4.27 → 1.4.29

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.
@@ -1299,7 +1299,9 @@ class CoreApp {
1299
1299
  * @param tryLogin Try to login again
1300
1300
  */
1301
1301
  toLoginPage(tryLogin) {
1302
- const url = '/' + (tryLogin ? '' : '?tryLogin=false');
1302
+ const url = '/?url=' +
1303
+ encodeURIComponent(location.href) +
1304
+ (tryLogin ? '' : '&tryLogin=false');
1303
1305
  this.navigate(url);
1304
1306
  }
1305
1307
  /**
@@ -1273,7 +1273,9 @@ export class CoreApp {
1273
1273
  * @param tryLogin Try to login again
1274
1274
  */
1275
1275
  toLoginPage(tryLogin) {
1276
- const url = '/' + (tryLogin ? '' : '?tryLogin=false');
1276
+ const url = '/?url=' +
1277
+ encodeURIComponent(location.href) +
1278
+ (tryLogin ? '' : '&tryLogin=false');
1277
1279
  this.navigate(url);
1278
1280
  }
1279
1281
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.4.27",
3
+ "version": "1.4.29",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -58,15 +58,15 @@
58
58
  "crypto-js": "^4.1.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@babel/cli": "^7.22.9",
62
- "@babel/core": "^7.22.9",
63
- "@babel/plugin-transform-runtime": "^7.22.9",
64
- "@babel/preset-env": "^7.22.9",
65
- "@babel/runtime-corejs3": "^7.22.6",
61
+ "@babel/cli": "^7.22.10",
62
+ "@babel/core": "^7.22.10",
63
+ "@babel/plugin-transform-runtime": "^7.22.10",
64
+ "@babel/preset-env": "^7.22.10",
65
+ "@babel/runtime-corejs3": "^7.22.10",
66
66
  "@types/crypto-js": "^4.1.1",
67
67
  "@types/jest": "^29.5.3",
68
- "jest": "^29.6.1",
69
- "jest-environment-jsdom": "^29.6.1",
68
+ "jest": "^29.6.2",
69
+ "jest-environment-jsdom": "^29.6.2",
70
70
  "ts-jest": "^29.1.1",
71
71
  "typescript": "^5.1.6"
72
72
  }
@@ -1667,7 +1667,10 @@ export abstract class CoreApp<
1667
1667
  * @param tryLogin Try to login again
1668
1668
  */
1669
1669
  toLoginPage(tryLogin?: boolean) {
1670
- const url = '/' + (tryLogin ? '' : '?tryLogin=false');
1670
+ const url =
1671
+ '/?url=' +
1672
+ encodeURIComponent(location.href) +
1673
+ (tryLogin ? '' : '&tryLogin=false');
1671
1674
  this.navigate(url);
1672
1675
  }
1673
1676