You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by sm...@apache.org on 2023/07/24 10:35:51 UTC
[knox] branch master updated: KNOX-2945 - Removing redundant slash from target URL on Token Generation UI (#782)
This is an automated email from the ASF dual-hosted git repository.
smolnar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push:
new c46cdc9d9 KNOX-2945 - Removing redundant slash from target URL on Token Generation UI (#782)
c46cdc9d9 is described below
commit c46cdc9d95cabc4a978a21e9b750cb911f7f2771
Author: Sandor Molnar <sm...@apache.org>
AuthorDate: Mon Jul 24 12:35:44 2023 +0200
KNOX-2945 - Removing redundant slash from target URL on Token Generation UI (#782)
---
.../token-generation/app/token-generation.service.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/knox-token-generation-ui/token-generation/app/token-generation.service.ts b/knox-token-generation-ui/token-generation/app/token-generation.service.ts
index b4b757cdc..e9a38637a 100644
--- a/knox-token-generation-ui/token-generation/app/token-generation.service.ts
+++ b/knox-token-generation-ui/token-generation/app/token-generation.service.ts
@@ -97,7 +97,7 @@ export class TokenGenService {
accessPasscode: tokenData.passcode,
expiry: new Date(tokenData.expires_in).toLocaleString(),
homepageURL: this.baseURL + tokenData.homepage_url,
- targetURL: window.location.protocol + '//' + window.location.host + '/' + this.baseURL + tokenData.target_url
+ targetURL: window.location.protocol + '//' + window.location.host + this.baseURL + tokenData.target_url
};
})
.catch((error: HttpErrorResponse) => {