<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic When passing a URL through Arcade Pop-up editor &amp;quot;&amp;&amp;quot; gets &amp;quot;amp;&amp;quot; added  in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376263#M18868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm configuring a basic pop-up within a Web Map using Arcade expressions.&amp;nbsp; For one of them I build a URL from an intersecting layer which is passed through to an image to be clicked.&amp;nbsp; When I test the expression the result is&amp;nbsp;what is&amp;nbsp;expected.&amp;nbsp; However, when I click on the image to which the expression is attached the URL is returned with "amp;" added directly after the "&amp;amp;" which breaks the link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/461095_Capture.JPG" /&gt;&lt;/P&gt;&lt;P&gt;And test results:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/461099_Capture1.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Actual passed URL:&lt;/P&gt;&lt;P&gt;&lt;A href="http://recording.whatcomcounty.us/Image/DocumentImage?year=1889&amp;amp;amp;itemId=5979"&gt;http://recording.whatcomcounty.us/Image/DocumentImage?year=1889&amp;amp;amp;itemId=5979&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried UrlEncode() on both the full string as well as just the &amp;amp; and while it does encode the URL does not work.&amp;nbsp; I've also tried encapsulating in text() but the &amp;amp; still gets converted at some point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2019 18:49:08 GMT</pubDate>
    <dc:creator>joshmontroy1</dc:creator>
    <dc:date>2019-10-03T18:49:08Z</dc:date>
    <item>
      <title>When passing a URL through Arcade Pop-up editor "&amp;" gets "amp;" added</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376263#M18868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm configuring a basic pop-up within a Web Map using Arcade expressions.&amp;nbsp; For one of them I build a URL from an intersecting layer which is passed through to an image to be clicked.&amp;nbsp; When I test the expression the result is&amp;nbsp;what is&amp;nbsp;expected.&amp;nbsp; However, when I click on the image to which the expression is attached the URL is returned with "amp;" added directly after the "&amp;amp;" which breaks the link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/461095_Capture.JPG" /&gt;&lt;/P&gt;&lt;P&gt;And test results:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/461099_Capture1.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Actual passed URL:&lt;/P&gt;&lt;P&gt;&lt;A href="http://recording.whatcomcounty.us/Image/DocumentImage?year=1889&amp;amp;amp;itemId=5979"&gt;http://recording.whatcomcounty.us/Image/DocumentImage?year=1889&amp;amp;amp;itemId=5979&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried UrlEncode() on both the full string as well as just the &amp;amp; and while it does encode the URL does not work.&amp;nbsp; I've also tried encapsulating in text() but the &amp;amp; still gets converted at some point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 18:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376263#M18868</guid>
      <dc:creator>joshmontroy1</dc:creator>
      <dc:date>2019-10-03T18:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: When passing a URL through Arcade Pop-up editor "&amp;" gets "amp;" added</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376264#M18869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/jmontroy" target="_blank"&gt;jmontroy&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to replicate the problem, but I am not able to. No need to encode or use Text to get the correct URL.&amp;nbsp;I'm using this code to test:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; link &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"1889x5979"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"http://recording.whatcomcounty.us/Image/DocumentImage?year="&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Mid&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;link&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"&amp;amp;itemId="&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;mid&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;link&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; url&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the result does not include any &amp;amp;amp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/461223_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the custom HTML pop-up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:23:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376264#M18869</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T17:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: When passing a URL through Arcade Pop-up editor "&amp;" gets "amp;" added</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376265#M18870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌, It does work as a link within the Pop-up Configuration dialogue, but if you try the same thing with the&amp;nbsp;url attached to an image it does the 'amp;' thing.&amp;nbsp; My current work-around is to construct the URL string in the Image Link box using a expression for each of the parameters:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="340" src="https://community.esri.com/legacyfs/online/461237_pastedImage_2.png" width="306" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;://recording.whatcomcounty.us/Image/DocumentImage?year={expression/expr0}&amp;amp;itemId={expression/expr2}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if it does the same for you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2019 20:24:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376265#M18870</guid>
      <dc:creator>joshmontroy1</dc:creator>
      <dc:date>2019-10-04T20:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: When passing a URL through Arcade Pop-up editor "&amp;" gets "amp;" added</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376266#M18871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/46281"&gt;josh montroy&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see what you mean. I tried a couple of things. Creating an expression that returns the image URL and used that as URL and link. As you described the &amp;amp; is replaced &amp;amp;amp; and makes the url invalid. Also using the expression that you mention at the end:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="http://recording.whatcomcounty.us/Image/DocumentImage?year={expression/expr0}&amp;amp;itemId={expression/expr2}"&gt;http://recording.whatcomcounty.us/Image/DocumentImage?year={expression/expr0}&amp;amp;itemId={expression/expr2}&lt;/A&gt;&amp;nbsp;does not seem to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The link however does work... Let me try something else and see if there is a hack to solve this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Oct 2019 22:04:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376266#M18871</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-10-06T22:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: When passing a URL through Arcade Pop-up editor "&amp;" gets "amp;" added</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376267#M18872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/46281"&gt;josh montroy&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this might be a little more complex than I imagined even if the &amp;amp; would not be replaced. When I look at the "image" I notice that it is&amp;nbsp;a pdf, or the page is using a plugin to convert the query to a pdf document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;embed id="plugin" type="application/x-google-chrome-pdf" src="http://recording.whatcomcounty.us/Image/DocumentImage?year=1889&amp;amp;amp;itemId=5979" ... &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this will work. Maybe you could use this in a custom html pop-up, but it is likely that the embed code will be rejected for security reasons.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Oct 2019 22:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376267#M18872</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-10-06T22:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: When passing a URL through Arcade Pop-up editor "&amp;" gets "amp;" added</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376268#M18873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; margin: 20px 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;BUG-000126359 has been submitted to Esri Development for this issue. The issue is reproducible whenever an image link redirects&amp;nbsp;to a URL based on the return of an Arcade expression. Thank you for your contribution to the Esri Community!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 17:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-passing-a-url-through-arcade-pop-up-editor/m-p/376268#M18873</guid>
      <dc:creator>JonathanLebowitz</dc:creator>
      <dc:date>2019-10-29T17:27:37Z</dc:date>
    </item>
  </channel>
</rss>

