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

URLs are getting formatted incorrectly when hastag is added

SA-35692

Summary



When an email treatment rule has a URL link containing a # character the source gets corrupted, and link does not work.


Error Messages



No errors in rule, but link may fail when clicked in the generated emails.


Steps to Reproduce

  1. Open an Email Treatment rule.
  2. Click the "Insert Button" icon on the far right of the editor.
  3. Set the function to External URL and enter "http://www.google.com/hash#test" and submit, and save the rule.
  4. Switch to the code view. Part of the HTML has been corrupted. A "<" character is replaced with "~#":

~#pega:param name='URL' value='http://www.google.com/hash#test'/#~


Root Cause



A defect in Pegasystems’ code or rules.

Resolution



Perform the following local-change:

Copy the HTML code required into a non auto generated section rule, and use the section in the email treatment.




LinkTest Section contains the pasted HTML code:


Suggest Edit

Published April 12, 2017 - Updated December 2, 2021

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