Support Article
URL redirection works in IE but junk char are intro in Chrome,FF
SA-36539
Summary
URL redirection works in Internet Explorer, however junk characters were introduced in the Chrome and Firefox browser URL's.
Error Messages
Not Applicable.
Steps to Reproduce
1. Create a HTML rule and pass an URL as parameter to it (url should include '=' symbol).
2. Now in an activity, call the 'Show-HTML' method.
Chrome:
https://hostname/web/test-password-reset?origin=https://hostname/prweb/PRServletSSO&username=prstage04
Internet Explorer:
https://hostname/web/test-password-reset?origin=https://hostname/prweb/PRServletSSO&username=prstage04
Root Cause
A software use or operation error.
User has configured pega:reference tag to populate URL value, while URL redirecting.
var url = "<pega:reference name="Param.url" mode="normal"/>"
In pega:reference tag, user has used mode parameter value as normal.
For normal mode, output converts <, >, & and * characters to the corresponding HTML entities (< >, & and * respectively). This results extra characters in URL.
Resolution
Perform the following local-change:
Replace:
var url = "<pega:reference name="Param.url" mode="normal"/>"
with
var url = '<%= tools.getParamValue("url") %>'
Published May 4, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.