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.

varurl = "<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:

varurl = "<pega:reference name="Param.url" mode="normal"/>"

with

varurl = '<%= tools.getParamValue("url") %>'

Published April 14, 2017 - Updated May 3, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.