@c8y/login 1022.6.1 → 1022.8.0
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/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c8y/login",
|
|
3
|
-
"version": "1022.
|
|
3
|
+
"version": "1022.8.0",
|
|
4
4
|
"description": "This package is used to scaffold a login application for Cumulocity IoT.",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@c8y/style": "1022.
|
|
7
|
-
"@c8y/ngx-components": "1022.
|
|
8
|
-
"@c8y/client": "1022.
|
|
9
|
-
"@c8y/bootstrap": "1022.
|
|
6
|
+
"@c8y/style": "1022.8.0",
|
|
7
|
+
"@c8y/ngx-components": "1022.8.0",
|
|
8
|
+
"@c8y/client": "1022.8.0",
|
|
9
|
+
"@c8y/bootstrap": "1022.8.0",
|
|
10
10
|
"@angular/cdk": "^19.2.18",
|
|
11
11
|
"ngx-bootstrap": "19.0.2",
|
|
12
12
|
"rxjs": "7.8.1"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@c8y/options": "1022.
|
|
16
|
-
"@c8y/devkit": "1022.
|
|
15
|
+
"@c8y/options": "1022.8.0",
|
|
16
|
+
"@c8y/devkit": "1022.8.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@angular/common": ">=19 <20"
|
|
@@ -326,18 +326,18 @@ export class LoginService extends SimplifiedAuthService {
|
|
|
326
326
|
if (redirectPathFromSessionStorage) {
|
|
327
327
|
sessionStorage.removeItem('c8yRedirectAfterLoginPath');
|
|
328
328
|
if (redirectPathFromSessionStorage.includes('?')) {
|
|
329
|
-
const
|
|
329
|
+
const { hash, searchParams, pathname } = new URL(
|
|
330
|
+
redirectPathFromSessionStorage,
|
|
331
|
+
window.location.origin
|
|
332
|
+
);
|
|
330
333
|
for (const param of this.queryParamsToRemove) {
|
|
331
|
-
|
|
334
|
+
searchParams.delete(param);
|
|
332
335
|
}
|
|
333
|
-
const newQueryParams =
|
|
334
|
-
const redirectWithoutQueryParams = redirectPathFromSessionStorage.split('?', 1)[0];
|
|
335
|
-
const hash = redirectPathFromSessionStorage.split('#', 2)[1] || '';
|
|
336
|
+
const newQueryParams = searchParams.toString();
|
|
336
337
|
|
|
337
338
|
const queryParamsToAppend = newQueryParams ? `?${newQueryParams}` : '';
|
|
338
|
-
const hashToAppend = hash
|
|
339
|
-
redirectPathFromSessionStorage =
|
|
340
|
-
redirectWithoutQueryParams + queryParamsToAppend + hashToAppend;
|
|
339
|
+
const hashToAppend = hash || '';
|
|
340
|
+
redirectPathFromSessionStorage = pathname + queryParamsToAppend + hashToAppend;
|
|
341
341
|
}
|
|
342
342
|
return Promise.resolve(redirectPathFromSessionStorage);
|
|
343
343
|
}
|