<?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: Experience Builder unable to use subfolder path in Ajax requests in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-unable-to-use-subfolder-path-in/m-p/1700795#M23266</link>
    <description>&lt;P&gt;Bit old but for the archives:&lt;/P&gt;&lt;P&gt;Replacing&amp;nbsp;&lt;SPAN&gt;client code (&lt;/SPAN&gt;&lt;EM&gt;client\dist\site\widgets\set-portalurl\dist\runtime\widget.js&lt;/EM&gt;&lt;SPAN&gt;), in the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;fetchSigninInfo&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;method:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const t = `${window.location.protocol}//${window.location.host}/signininfo`;&lt;/LI-CODE&gt;&lt;P&gt;with&lt;/P&gt;&lt;LI-CODE lang="c"&gt;const t=`${window.jimuConfig.baseUrl}signininfo`&lt;/LI-CODE&gt;&lt;P&gt;fixes it I think. Not exhaustively tested. Note that no slash needed before&lt;EM&gt; signininfo&lt;/EM&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2026 03:50:06 GMT</pubDate>
    <dc:creator>ShanonLoughton</dc:creator>
    <dc:date>2026-05-08T03:50:06Z</dc:date>
    <item>
      <title>Experience Builder unable to use subfolder path in Ajax requests</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-unable-to-use-subfolder-path-in/m-p/1617015#M19049</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;When using the ArcGIS Experience Builder v1.17 with the &lt;EM&gt;--path&lt;/EM&gt; option as documented in the [installation guide](&lt;A href="https://developers.arcgis.com/experience-builder/guide/install-guide/" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/install-guide/&lt;/A&gt;), the client-side code fails to honor the subfolder path in Ajax requests.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="othke_0-1747839260272.png" style="width: 564px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/132802iDE585380A2E5A562/image-dimensions/564x198?v=v2" width="564" height="198" role="button" title="othke_0-1747839260272.png" alt="othke_0-1747839260272.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- ArcGIS Experience Builder: v1.17&lt;BR /&gt;- Web Browser: Chrome&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps to Reproduce&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Start Experience Builder with a custom path: &lt;EM&gt;npm start -- --path /exb&lt;/EM&gt;&lt;BR /&gt;2. Access the builder at: &lt;EM&gt;&lt;A href="https://localhost:3001/exb/" target="_blank"&gt;https://localhost:3001/exb/&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;3. User is redirected to: &lt;EM&gt;&lt;A href="https://localhost:3001/exb/page/set-portalurl" target="_blank"&gt;https://localhost:3001/exb/page/set-portalurl&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;4. The page attempts to fetch data from &lt;EM&gt;&lt;A href="https://localhost:3001/signininfo" target="_blank"&gt;https://localhost:3001/signininfo&lt;/A&gt;&lt;/EM&gt;&amp;nbsp;(missing the &lt;EM&gt;/exb&lt;/EM&gt;&amp;nbsp;prefix)&lt;BR /&gt;5. The request fails with a 404 error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Behavior&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The Ajax request should be made to `&lt;A href="https://localhost:3001/exb/signininfo" target="_blank"&gt;https://localhost:3001/exb/signininfo&lt;/A&gt;`, respecting the subfolder path.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual Behavior&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The Ajax request is made to &lt;EM&gt;&lt;A href="https://localhost:3001/signininfo" target="_blank"&gt;https://localhost:3001/signininfo&lt;/A&gt;&lt;/EM&gt;, ignoring the subfolder path.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Root Cause Analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the client code (&lt;EM&gt;client\dist\site\widgets\set-portalurl\dist\runtime\widget.js&lt;/EM&gt;), the &lt;EM&gt;fetchSigninInfo&lt;/EM&gt;&amp;nbsp;method constructs the URL without considering the subfolder path:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;fetchSigninInfo() {
  const t = `${window.location.protocol}//${window.location.host}/signininfo`;
  return window
    .fetch(t, { cache: "no-cache" })
    .then((t) =&amp;gt; t.json())
    .then(
      (t) =&amp;gt; (
        this.setState({ signinInfos: t }),
        this.getDefaultPortalUrl(t).then((t) =&amp;gt; {
          this.selectPortalUrl(t);
        }),
        t
      )
    )
    .catch((t) =&amp;gt; (console.error(t), t));
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other widgets in the codebase appear to use a utility method &lt;EM&gt;${e.urlUtils.getFixedRootPath()}&lt;/EM&gt;&amp;nbsp;to correctly retrieve the subfolder path prefix. This method should be used in the `set-portalurl` widget as well.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Impact&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Users cannot run Experience Builder in a subfolder configuration, limiting deployment flexibility.&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 14:56:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-unable-to-use-subfolder-path-in/m-p/1617015#M19049</guid>
      <dc:creator>othke</dc:creator>
      <dc:date>2025-05-21T14:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder unable to use subfolder path in Ajax requests</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-unable-to-use-subfolder-path-in/m-p/1700795#M23266</link>
      <description>&lt;P&gt;Bit old but for the archives:&lt;/P&gt;&lt;P&gt;Replacing&amp;nbsp;&lt;SPAN&gt;client code (&lt;/SPAN&gt;&lt;EM&gt;client\dist\site\widgets\set-portalurl\dist\runtime\widget.js&lt;/EM&gt;&lt;SPAN&gt;), in the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;fetchSigninInfo&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;method:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const t = `${window.location.protocol}//${window.location.host}/signininfo`;&lt;/LI-CODE&gt;&lt;P&gt;with&lt;/P&gt;&lt;LI-CODE lang="c"&gt;const t=`${window.jimuConfig.baseUrl}signininfo`&lt;/LI-CODE&gt;&lt;P&gt;fixes it I think. Not exhaustively tested. Note that no slash needed before&lt;EM&gt; signininfo&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 03:50:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-unable-to-use-subfolder-path-in/m-p/1700795#M23266</guid>
      <dc:creator>ShanonLoughton</dc:creator>
      <dc:date>2026-05-08T03:50:06Z</dc:date>
    </item>
  </channel>
</rss>

