Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice