smolnar82 commented on code in PR #787:
URL: https://github.com/apache/knox/pull/787#discussion_r1348347251


##########
knox-token-management-ui/token-management/app/token.management.component.ts:
##########
@@ -30,7 +30,9 @@ import {MatSort} from '@angular/material/sort';
 
 export class TokenManagementComponent implements OnInit {
 
-    tokenGenerationPageURL = window.location.pathname.replace(new 
RegExp('token-management/.*'), 'token-generation/index.html');
+    pathParts = window.location.pathname.split('/');

Review Comment:
   I couldn't agree more, but I did not find out (yet) how to do that properly 
in TypeScript between different Maven modules. Let's leave it as-is for now and 
refactor this out when I'll have time to investigate.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to