<?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 Re: Relative URLs in Popup Content in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316636#M81886</link>
    <description>&lt;P&gt;What parameters are you trying to pass into the function? The formatContent function in my example above allows you to access the current selected feature as a parameter and then you can use the graphic property to access the attributes.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function formatContent(feature) {
    // Access the feature's graphic which holds the attributes.
    // If needing the attributes, be sure to set "outFields=['*']" on
    // the layer or on the popupTemplate.
    console.log(feature.graphic.attributes);
    const mainDiv = document.createElement("div");
    const element = document.createElement("a");
    element.href = "./test.html";
    element.target = "_blank";
    element.innerHTML = "This works now!";
    mainDiv.appendChild(element);
    return mainDiv;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2023 21:25:05 GMT</pubDate>
    <dc:creator>LaurenBoyd</dc:creator>
    <dc:date>2023-08-08T21:25:05Z</dc:date>
    <item>
      <title>Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1089285#M74290</link>
      <description>&lt;P&gt;I'm in the process of upgrading an ArcGIS Javascript API 3.x application to 4.19/20 and having trouble with URLs in my popup.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In 3.x, I was able to set the template content like so, using relative paths to my reports:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; var templateContent = "&amp;lt;b&amp;gt;{STATIONNUM} (" + status + ")&amp;lt;/b&amp;gt;&amp;lt;hr&amp;gt;" +
                        "&amp;lt;b&amp;gt;Station Name: &amp;lt;/b&amp;gt;{STATIONNAM}&amp;lt;br&amp;gt;" +
                        "&amp;lt;b&amp;gt;Description: &amp;lt;/b&amp;gt;{DESCRIPT}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;" +
                        "&amp;lt;a href='Station/StationReport/{STATIONNUM}' target='_blank'&amp;gt;Full Station Report&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;" +
                        "&amp;lt;a href='StationFiles/Files/{STATIONNUM}' target='_blank'&amp;gt;Sketches / Photos&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;" +
                        "&amp;lt;a href='https://maps.google.com/maps?q=&amp;amp;layer=c&amp;amp;cbll=" + data[0].latitude + "," + data[0].longitude + "' target='_blank'&amp;gt;Google Street View&amp;lt;/a&amp;gt;" +
                        showSession + "&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;" + adoptionInfo;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This same code works in 4.x, except for the relative paths. I end up with this in the popup:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="esri-feature-content"&amp;gt;
	&amp;lt;div&amp;gt;
		&amp;lt;b&amp;gt;229327 (Intact)&amp;lt;/b&amp;gt;
		&amp;lt;hr&amp;gt;
		&amp;lt;b&amp;gt;Station Name: &amp;lt;/b&amp;gt;Minard Bog&amp;lt;br&amp;gt;
		&amp;lt;b&amp;gt;Description: &amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
		&amp;lt;a href target="_blank"&amp;gt;Full Station Report&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
		&amp;lt;a href target="_blank"&amp;gt;Sketches / Photos&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
		&amp;lt;a href="https://maps.google.com/maps?q=&amp;amp;amp;layer=c&amp;amp;amp;cbll=44.12769707011916,-65.12424322455458" target="_blank"&amp;gt;Google Street View&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
		Not Adopted
	&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, if I put in the full URL, it works properly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; var templateContent = "&amp;lt;b&amp;gt;{STATIONNUM} (" + status + ")&amp;lt;/b&amp;gt;&amp;lt;hr&amp;gt;" +
                        "&amp;lt;b&amp;gt;Station Name: &amp;lt;/b&amp;gt;{STATIONNAM}&amp;lt;br&amp;gt;" +
                        "&amp;lt;b&amp;gt;Description: &amp;lt;/b&amp;gt;{DESCRIPT}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;" +
                        "&amp;lt;a href='https://localhost:44322/Station/StationReport/{STATIONNUM}' target='_blank'&amp;gt;Full Station Report&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;" +
                        "&amp;lt;a href='https://localhost:44322/StationFiles/Files/{STATIONNUM}' target='_blank'&amp;gt;Sketches / Photos&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;" +
                        "&amp;lt;a href='https://maps.google.com/maps?q=&amp;amp;layer=c&amp;amp;cbll=" + data[0].latitude + "," + data[0].longitude + "' target='_blank'&amp;gt;Google Street View&amp;lt;/a&amp;gt;" +
                        showSession + "&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;" + adoptionInfo;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;result:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="esri-feature-content"&amp;gt;
	&amp;lt;div&amp;gt;
		&amp;lt;b&amp;gt;229327 (Intact)&amp;lt;/b&amp;gt;
		&amp;lt;hr&amp;gt;
		&amp;lt;b&amp;gt;Station Name: &amp;lt;/b&amp;gt;Minard Bog&amp;lt;br&amp;gt;
		&amp;lt;b&amp;gt;Description: &amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
		&amp;lt;a href="https://localhost:44322/Station/StationReport/229327" target="_blank"&amp;gt;Full Station Report&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
		&amp;lt;a href="https://localhost:44322/StationFiles/Files/229327" target="_blank"&amp;gt;Sketches / Photos&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
		&amp;lt;a href="https://maps.google.com/maps?q=&amp;amp;amp;layer=c&amp;amp;amp;cbll=44.12769707011916,-65.12424322455458" target="_blank"&amp;gt;Google Street View&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
		Not Adopted
	&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like a bug me? Has anyone else experienced this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 14:14:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1089285#M74290</guid>
      <dc:creator>DeniseDemone1</dc:creator>
      <dc:date>2021-08-16T14:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1250059#M79988</link>
      <description>&lt;P&gt;Relative paths aren't working for me either; they just get stripped out.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 19:33:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1250059#M79988</guid>
      <dc:creator>JoePfeifer</dc:creator>
      <dc:date>2023-01-20T19:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1313984#M81823</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Relative paths aren't working for me either; they just get stripped out.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I just got same issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 11:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1313984#M81823</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2023-08-01T11:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1314246#M81829</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;The HTML sanitizer may be stripping this out for security purposes depending on how you are creating the popup content. Have you tried formatting your &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#content" target="_self"&gt;Popup content&lt;/A&gt; using a function? Here's an example of how this would look with relative paths:&amp;nbsp;&lt;A href="https://codepen.io/laurenb14/pen/zYJqzYp" target="_blank" rel="noopener"&gt;https://codepen.io/laurenb14/pen/zYJqzYp&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 18:55:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1314246#M81829</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-08-01T18:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316338#M81879</link>
      <description>&lt;P&gt;Can I do the same for popup title? formatTitle?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 11:45:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316338#M81879</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2023-08-08T11:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316347#M81880</link>
      <description>&lt;P&gt;How to pass parameters to&amp;nbsp;function formatContent()?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 12:23:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316347#M81880</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2023-08-08T12:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316636#M81886</link>
      <description>&lt;P&gt;What parameters are you trying to pass into the function? The formatContent function in my example above allows you to access the current selected feature as a parameter and then you can use the graphic property to access the attributes.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function formatContent(feature) {
    // Access the feature's graphic which holds the attributes.
    // If needing the attributes, be sure to set "outFields=['*']" on
    // the layer or on the popupTemplate.
    console.log(feature.graphic.attributes);
    const mainDiv = document.createElement("div");
    const element = document.createElement("a");
    element.href = "./test.html";
    element.target = "_blank";
    element.innerHTML = "This works now!";
    mainDiv.appendChild(element);
    return mainDiv;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 21:25:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316636#M81886</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-08-08T21:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316637#M81887</link>
      <description>&lt;P&gt;Yes, the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#title" target="_self"&gt;PopupTemplate.title&lt;/A&gt; property also accepts a function.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 21:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316637#M81887</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-08-08T21:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316793#M81895</link>
      <description>&lt;P&gt;What&amp;nbsp;&lt;SPAN&gt;parameter does the function of&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#title" target="_self" rel="nofollow noopener noreferrer"&gt;PopupTemplate.title&lt;/A&gt;&amp;nbsp;property&amp;nbsp;take? event?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 11:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316793#M81895</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2023-08-09T11:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316795#M81896</link>
      <description>&lt;P&gt;Is function formatContent able to pass&amp;nbsp;other parameters?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 11:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1316795#M81896</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2023-08-09T11:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1319686#M82012</link>
      <description>&lt;P&gt;It doesn't work.&lt;/P&gt;&lt;P&gt;In Angular:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;rendererFactory = inject(&lt;/SPAN&gt;&lt;SPAN&gt;RendererFactory2);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;renderer&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;rendererFactory&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;createRenderer&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/D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&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;div&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;this.renderer&amp;nbsp; is undefined&lt;/STRONG&gt; in function&amp;nbsp;&lt;SPAN&gt;createCustomTitle. Don't know why.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 15:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1319686#M82012</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2023-08-17T15:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Relative URLs in Popup Content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1320419#M82035</link>
      <description>&lt;P&gt;"this" doesn't work in functions&amp;nbsp;&lt;SPAN&gt;formatTitle and&amp;nbsp;formatContent.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2023 22:26:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relative-urls-in-popup-content/m-p/1320419#M82035</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2023-08-19T22:26:40Z</dc:date>
    </item>
  </channel>
</rss>

