zeroflag opened a new pull request #496:
URL: https://github.com/apache/knox/pull/496


   ## What changes were proposed in this pull request?
   
   There is a parse error in redirect.jsp 
   
   ```
   :8443/gateway/knoxss…/home/?refresh=1:49 Uncaught SyntaxError: Unexpected 
token ':'
   ```
   
   This happens because the quotes are missing around the original url:
   
   ```js
   var originalUrl = <%= originalUrl %>;
   ```
   
   So expression like this is generated into the html:
   
   ```js
    var originalUrl = https://localhost:8443/gateway/homepage/home/?refresh=1;
   ```
   
   ## How was this patch tested?
   
   Manually triggered the redirect with logging into knox.


-- 
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