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

Links in the portal stop working after obfuscation enabled



After enabling obfuscation in a test environment we noticed that many custom application links in the portal stopped working.

Error Messages

"Obfuscation cannot be performed with a null or blank key"

Steps to Reproduce

1. Enabled obfuscation through dynamic system setting
2. Log into user portal
3. Click on an application link in the user portal

Root Cause

The root cause of this problem is defect/misconfiguration in the PRPC operating environment.  URLs generated by custom Javascript were not passed through a SafeURL encoder and thus encountered errors after being encrypted.


This issue is resolved through the following local change: 

When generating URLs in custom javascript, rather than using this implementation:
var oTempURL = pxReqURI+"?pyActivity=ORG-FW-Application-Work.Document&DocName="+docname;

use this implementation:

var oTempURL = new SafeURL(ORG-FW-Application-Work.Document)


The safeURL function is necessary to create URLs in a way that the URL obfuscation algorithms can parse.
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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