@gandalan/weblibs 0.0.17 → 0.0.18

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.
Files changed (2) hide show
  1. package/api/IDAS.js +2 -2
  2. package/package.json +1 -1
package/api/IDAS.js CHANGED
@@ -15,7 +15,7 @@ restClient.onError = (error, message) => {
15
15
  {
16
16
  //console.log(message+" would remove Token");
17
17
  localStorage.removeItem("IDAS_AuthToken");
18
- var ssoURL = ssoAuthUrl.replace("%target%", encodeURIComponent(window.location.origin));
18
+ var ssoURL = ssoAuthUrl.replace("%target%", encodeURIComponent(window.location.href));
19
19
  window.location = ssoURL;
20
20
  }
21
21
  }
@@ -38,7 +38,7 @@ export class IDAS
38
38
  async authenticateWithSSO() {
39
39
  if (!authToken)
40
40
  {
41
- var ssoURL = ssoAuthUrl.replace("%target%", encodeURIComponent(window.location.origin));
41
+ var ssoURL = ssoAuthUrl.replace("%target%", encodeURIComponent(window.location.href));
42
42
  window.location = ssoURL;
43
43
  }
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gandalan/weblibs",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "WebLibs for Gandalan JS/TS/Svelte projects",
5
5
  "author": "Philipp Reif",
6
6
  "license": "ISC",