Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Employee Center / Service Portal: Ampersand (&) displaying as & in breadcrumb

sonalik
Tera Contributor

I am seeing an issue in Employee Center where an ampersand (&) in a Topic name is displayed as & in the breadcrumb.

Example:

  • Topic Name: System & Status
  • Expected: System & Status
  • Actual: System & Status

The Topic record contains the correct value, and the issue appears only in the portal display.

Has anyone encountered this issue before? Any ideas how it can be resolved?

 

Thank you.

1 REPLY 1

sachinvic
Kilo Guru

@sonalik 

Hi,

This looks like an HTML entity encoding issue in the Employee Center topic/breadcrumb rendering, rather than an issue with the Topic record itself.

Since the Topic value is stored correctly as System & Status, do not change the Topic name to &.

ServiceNow has documented PRB1820092 for incorrect rendering of & as an HTML entity in HR Topic UI. Check whether the instance/release is affected and whether the applicable fix/patch is available before introducing a customization.

https://www.servicenow.com/docs/r/zurich/release-notes/zurich-all-other-fixes.html

 

If the instance is already on a version containing the fix and the issue still occurs, then review any customization of the Employee Center Breadcrumbs/Topic widgets. The breadcrumbs are part of the Employee Center topic page.

https://www.servicenow.com/docs/r/employee-service-management/employee-experience-foundation/ec-topi...

 

I would recommend applying the applicable ServiceNow fix first rather than modifying the breadcrumb widget.