<?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 URL getting replaced with # in webmap in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450529#M22645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a webmap with a pop up enabled, with a custom attribute display configuration, using a href url call to another mobile app. The idea being a link from the pop up will call the other app with appropriate parameters e.g. &lt;STRONG&gt;appname://&lt;/STRONG&gt;?asset=xyz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After&amp;nbsp;clicking OK for the pop up config and saving the webmap the link works if I use the webmap immediately in a browser, until I refresh the page. In Explorer for ArcGIS the link fails and it isn't recognised as a hyperlink. When I&amp;nbsp;view the webmap's JSON in ArcGIS Online Assistant the link is getting replaced with&amp;nbsp;"&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;SPAN&gt;?asset=xyz&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weirdly enough,&amp;nbsp;if I use the same url in the Pop-up Media config, with an image, the link is retained and works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why appname:// is getting replaced with a '#'? Is there anyway to call a custom app&amp;nbsp;from the Attributes area of a pop up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/group/4825"&gt;Explorer for ArcGIS&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2019 04:18:23 GMT</pubDate>
    <dc:creator>deleted-user-7SLqM7dlvYNN</dc:creator>
    <dc:date>2019-02-26T04:18:23Z</dc:date>
    <item>
      <title>URL getting replaced with # in webmap</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450529#M22645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a webmap with a pop up enabled, with a custom attribute display configuration, using a href url call to another mobile app. The idea being a link from the pop up will call the other app with appropriate parameters e.g. &lt;STRONG&gt;appname://&lt;/STRONG&gt;?asset=xyz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After&amp;nbsp;clicking OK for the pop up config and saving the webmap the link works if I use the webmap immediately in a browser, until I refresh the page. In Explorer for ArcGIS the link fails and it isn't recognised as a hyperlink. When I&amp;nbsp;view the webmap's JSON in ArcGIS Online Assistant the link is getting replaced with&amp;nbsp;"&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;SPAN&gt;?asset=xyz&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weirdly enough,&amp;nbsp;if I use the same url in the Pop-up Media config, with an image, the link is retained and works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why appname:// is getting replaced with a '#'? Is there anyway to call a custom app&amp;nbsp;from the Attributes area of a pop up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/group/4825"&gt;Explorer for ArcGIS&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 04:18:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450529#M22645</guid>
      <dc:creator>deleted-user-7SLqM7dlvYNN</dc:creator>
      <dc:date>2019-02-26T04:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: URL getting replaced with # in webmap</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450530#M22646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;BR /&gt;I believe this is a known limitation:&lt;BR /&gt;&lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExODQ3Nw==" title="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExODQ3Nw=="&gt;BUG-000118477: Reloading and saving a web map using HTML tags (URI ..&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There was a&amp;nbsp;workaround to this&amp;nbsp;issue by inserting the URI as a custom Attribute Expression. Refer steps below:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the Configure- Pop-up Pane, add a custom Attribute Expression:&lt;/LI&gt;&lt;LI&gt;"ie:" where ie: being URI&lt;/LI&gt;&lt;LI&gt;When added this will appear as '{expression/expr0} under Attribute Expressions&lt;/LI&gt;&lt;LI&gt;In HTML space where we add URI, please replace URI with {expression/exrp0}&lt;UL&gt;&lt;LI&gt;The line will look like:&lt;BR /&gt;&amp;lt;a href="{expression/expr0}http://google.com"&amp;gt;Open Google with schema&amp;lt;/a&amp;gt;&lt;/LI&gt;&lt;LI&gt;Instead of&lt;BR /&gt;&amp;lt;a href="ie:http://google.com"&amp;gt;Open Google with schema&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This workaround succeeded on one occasion but not for a later attempt, so I wouldn't really expect it to work but may be worth a shot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 05:13:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450530#M22646</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-02-26T05:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: URL getting replaced with # in webmap</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450531#M22647</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/274650" target="_blank"&gt;Mark Peacey&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This happens because "appname" is not a whitelisted app on AGOL and the URL is sanitized on Save (resulting in the #). Can you tell me which platform you are on (iOS or Android)? Here are the ways you can work around this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Plaint text: You should be able to add the url to the custom description as-is "appname://&lt;SPAN style="background-color: #ffffff;"&gt;?asset=xyz" and Explorer will display the URL as tappable (only on iOS). This is probably not ideal since you could end up with a quite large URL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;2. Attribute expression: As &lt;A href="https://community.esri.com/migrated-users/326080" target="_blank"&gt;Chris Counsell&lt;/A&gt;‌ mentioned here&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/message/834169-url-getting-replaced-with-in-webmap?et=notification.mention.place#comment-834198" target="_blank"&gt;Feb 25, 2019 9:13 PM&lt;/A&gt;, you could potentially use an attribute expression. Unfortunately the currently released versions of Explorer do not support attribute expressions. This will come with the next release of Explorer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;3. Field substitution: This is likely your best option, given the current version that is available. This option involves creating a field in your data for the "custom_scheme" and then by calculating field for the &lt;SPAN&gt;"custom_scheme" &lt;/SPAN&gt; to be "app name://?". You can then use field substitution in URL for your hyperlink "{custom_scheme}&lt;SPAN style="background-color: #ffffff;"&gt;asset=xyz". On the device, the URL will then resolve to&amp;nbsp;&lt;SPAN&gt;"appname://&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;?asset=xyz" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Once the next version of Explorer is released, using attribute expression will be your best choice. This will allow you to also do proper encoding if your passing other information to your app that may have values that need to be percent-encoded (spaces, apostrophes, etc.). Here's a simple example of how you could encode your URL using attribute expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;url = "arcgis-survey123://?itemID=44234&amp;amp;field:rname=" + $feature.Name
encoded_url = Replace(url, "'", "%27")
encoded_url&lt;/PRE&gt;&lt;P&gt;Feel free to reach out if you have other questions &lt;A href="mailto:jwhitney@esri.com" rel="nofollow noopener noreferrer" target="_blank"&gt;jwhitney@esri.com&lt;/A&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450531#M22647</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T16:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: URL getting replaced with # in webmap</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450532#M22648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/326080"&gt;Chris Counsell&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/migrated-users/226938"&gt;Joel Whitney&lt;/A&gt;‌ for the details, much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris I tried the Attribute Expression option and that works for AGOL and holds the url but as per Joel's&amp;nbsp;post it doesn't get honoured in Explorer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joel, I tried:&lt;/P&gt;&lt;P&gt;1. The url wasn't tappable on iOS with v18.1.2 of Explorer&amp;nbsp;- might be because I don't have an up to date version of the other app with the URL schema configured, so iOS doesn't recognise it?&lt;/P&gt;&lt;P&gt;2. Will be great when Explorer supports Attribute Expressions as it&amp;nbsp;looks like&amp;nbsp;the best method and will be very useful for multiple things.&lt;/P&gt;&lt;P&gt;3. Not really possible with these datasets as they're corporate layers used by multiple applications. For the time being&amp;nbsp;we'll stick with the url link from the Media image and then update it&amp;nbsp;when Explorer can use Attribute Expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 22:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450532#M22648</guid>
      <dc:creator>deleted-user-7SLqM7dlvYNN</dc:creator>
      <dc:date>2019-02-26T22:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: URL getting replaced with # in webmap</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450533#M22649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding: 0px;"&gt;The next step is creating an offline version of the map, for Explorer&amp;nbsp;for ArcGIS,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with the same linking capability. I created an expression in the ArcGIS Pro pop-up:&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;"appname://?assetNumber=" + $feature.MXASSETNUM + "&amp;amp;location=" + $feature.MXLOCATION&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;I then linked that to an image, using the expression in the Hyperlink field, to emulate what we've got in the online&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;webmap. This looked like it was going to work brilliantly until I checked the URL that's being passed to&amp;nbsp;the web browser and it's "appname:&lt;STRONG style="font-family: 'arial black', sans-serif; "&gt;///&lt;/STRONG&gt;?assetNumber=13136675&amp;amp;location=ACW-TP807688" &amp;lt; the URL has a third '/' in it. If I use one of Esri's default app schema's, which appear to be whitelisted as they can be used directly in the hyperlink field, it&amp;nbsp;appears to launch the app correctly. Any ideas? Is this a bug or security restriction on non-whitelisted URLs?&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;A href="https://community.esri.com/space/2151"&gt;ArcGIS Pro&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 19:52:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/url-getting-replaced-with-in-webmap/m-p/450533#M22649</guid>
      <dc:creator>deleted-user-7SLqM7dlvYNN</dc:creator>
      <dc:date>2019-03-04T19:52:08Z</dc:date>
    </item>
  </channel>
</rss>

