<?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 WebApp with URL Parameters Not Working in arcg.is Shortener? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/webapp-with-url-parameters-not-working-in-arcg-is/m-p/1537100#M61441</link>
    <description>&lt;P data-unlink="true"&gt;Many see and use the &lt;U&gt;&lt;FONT color="#3366FF"&gt;https://arcg.is/&lt;/FONT&gt;&lt;/U&gt; links to access wordy URLs describing some ArcGIS site.&lt;/P&gt;&lt;P data-unlink="true"&gt;Because of &lt;FONT color="#800000"&gt;&lt;STRONG&gt;&lt;EM&gt;reasons&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;, I wish to store my individual records' URL in a short-ish String field.&lt;/P&gt;&lt;P data-unlink="true"&gt;They may be created by placing the original, "long URL" after the &lt;EM&gt;equals sign&lt;/EM&gt; below:&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;STRONG&gt;https://arcg.is/prod/shorten?longUrl=&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;__________________________________&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT color="#000000"&gt;A .json file will be returned with the shortened URL included.&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="arial black,avant garde"&gt;BUT&lt;/FONT&gt;, it appears that if the long URL contains extra parameters like "extent," they seem to be ignored.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier" size="5"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;&amp;lt;EDIT&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;I found the solution somewhere between the Dev Pages and &lt;A href="https://doc.arcgis.com/en/web-appbuilder/latest/manage-apps/app-url-parameters.htm" target="_blank"&gt;https://doc.arcgis.com/en/web-appbuilder/latest/manage-apps/app-url-parameters.htm&lt;/A&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;EM&gt;&lt;STRONG&gt;Your long URL needs to be encoded to be properly accepted in full.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;In my case, that meant replacing a few characters with their %xy equivalents:&lt;/P&gt;&lt;P data-unlink="true"&gt;Encoded_longURL=LongURL.replace("&lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt;","&lt;STRONG&gt;%26&lt;/STRONG&gt;")&lt;BR /&gt;Encoded_longURL=Encoded_longURL.replace("&lt;STRONG&gt;=&lt;/STRONG&gt;","&lt;STRONG&gt;%3D&lt;/STRONG&gt;")&lt;BR /&gt;Encoded_longURL=Encoded_longURL.replace("&lt;STRONG&gt;,&lt;/STRONG&gt;","&lt;STRONG&gt;%2C&lt;/STRONG&gt;")&lt;/P&gt;&lt;P data-unlink="true"&gt;I'm happy to report that it's working now!!&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 21:47:31 GMT</pubDate>
    <dc:creator>ODWC_GIS</dc:creator>
    <dc:date>2024-09-10T21:47:31Z</dc:date>
    <item>
      <title>WebApp with URL Parameters Not Working in arcg.is Shortener?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webapp-with-url-parameters-not-working-in-arcg-is/m-p/1537100#M61441</link>
      <description>&lt;P data-unlink="true"&gt;Many see and use the &lt;U&gt;&lt;FONT color="#3366FF"&gt;https://arcg.is/&lt;/FONT&gt;&lt;/U&gt; links to access wordy URLs describing some ArcGIS site.&lt;/P&gt;&lt;P data-unlink="true"&gt;Because of &lt;FONT color="#800000"&gt;&lt;STRONG&gt;&lt;EM&gt;reasons&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;, I wish to store my individual records' URL in a short-ish String field.&lt;/P&gt;&lt;P data-unlink="true"&gt;They may be created by placing the original, "long URL" after the &lt;EM&gt;equals sign&lt;/EM&gt; below:&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;STRONG&gt;https://arcg.is/prod/shorten?longUrl=&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;__________________________________&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT color="#000000"&gt;A .json file will be returned with the shortened URL included.&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="arial black,avant garde"&gt;BUT&lt;/FONT&gt;, it appears that if the long URL contains extra parameters like "extent," they seem to be ignored.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier" size="5"&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;&amp;lt;EDIT&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;I found the solution somewhere between the Dev Pages and &lt;A href="https://doc.arcgis.com/en/web-appbuilder/latest/manage-apps/app-url-parameters.htm" target="_blank"&gt;https://doc.arcgis.com/en/web-appbuilder/latest/manage-apps/app-url-parameters.htm&lt;/A&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;EM&gt;&lt;STRONG&gt;Your long URL needs to be encoded to be properly accepted in full.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;In my case, that meant replacing a few characters with their %xy equivalents:&lt;/P&gt;&lt;P data-unlink="true"&gt;Encoded_longURL=LongURL.replace("&lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt;","&lt;STRONG&gt;%26&lt;/STRONG&gt;")&lt;BR /&gt;Encoded_longURL=Encoded_longURL.replace("&lt;STRONG&gt;=&lt;/STRONG&gt;","&lt;STRONG&gt;%3D&lt;/STRONG&gt;")&lt;BR /&gt;Encoded_longURL=Encoded_longURL.replace("&lt;STRONG&gt;,&lt;/STRONG&gt;","&lt;STRONG&gt;%2C&lt;/STRONG&gt;")&lt;/P&gt;&lt;P data-unlink="true"&gt;I'm happy to report that it's working now!!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 21:47:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webapp-with-url-parameters-not-working-in-arcg-is/m-p/1537100#M61441</guid>
      <dc:creator>ODWC_GIS</dc:creator>
      <dc:date>2024-09-10T21:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: WebApp with URL Parameters Not Working in arcg.is Shortener?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webapp-with-url-parameters-not-working-in-arcg-is/m-p/1537114#M61442</link>
      <description>&lt;P&gt;The solution was to Encode all the URL Parameters associated with the long URL.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 21:48:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webapp-with-url-parameters-not-working-in-arcg-is/m-p/1537114#M61442</guid>
      <dc:creator>ODWC_GIS</dc:creator>
      <dc:date>2024-09-10T21:48:34Z</dc:date>
    </item>
  </channel>
</rss>

