laptop and a wrench

Bug

Arcade expression converts to octothorpe (#) in the pop-up configuration if it is added to a hyperlink.

Last Published: August 5, 2021 Portal for ArcGIS
Bug ID Number BUG-000141008
SubmittedJune 25, 2021
Last ModifiedFebruary 14, 2025
Applies toPortal for ArcGIS
Version found10.8.1
Operating SystemWindows OS
Operating System VersionN/A
StatusAs Designed

Additional Information

This is as-designed. Both ArcGIS Enterprise and ArcGIS Online have HTML sanitization logic in place to clean untrusted elements and strings of HTML. This is to prevent cross-site scripting and protect the system and user. In this case, the HTML href element does not contain a trusted protocol and the resulting link is intentionally sanitized (resulting in a link that does not work). The HTML sanitization logic trusts the "arcgis-survey123" protocol, but in this example, it is not defined explicitly via the HTML string, it is constructed via the underlying arcade expression. Refer to the workaround to revise the arcade expression and href HTML string.

Workaround

The workflow works with the following updates: 1. Update the return statement within the arcade expression to... return UrlEncode(params)+coordinates+callback; 2. Update the pop-up HTML string href to... href="arcgis-survey123://{expression/expr0}&field:esa={esa}"

Steps to Reproduce

Bug ID: BUG-000141008

Software:

  • Portal for ArcGIS

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options