bonampak commented on code in PR #1472:
URL: https://github.com/apache/knox/pull/1472#discussion_r4443159925
##########
gateway-applications/src/main/resources/applications/knoxauth/app/js/knoxauth.js:
##########
@@ -27,6 +27,11 @@ function get(name) {
}
}
+function getOriginalUrl() {
+ var originalUrl = get("originalUrl");
+ return originalUrl ? originalUrl.replace(/&theme=[a-zA-Z0-9_-]{1,64}$/,
"") : originalUrl;
Review Comment:
this pattern is the same as KNOX_THEME_NAME_PATTERN.
You can add the same comment as in logout.jsp:
```
// Keep pattern in sync with KNOX_THEME_NAME_PATTERN in theme-config.js
```
--
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]