<?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: Home button sending to wrong URL in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353620#M14301</link>
    <description>&lt;P&gt;Hi Cody,&lt;/P&gt;&lt;P&gt;Two thoughts here - first, I assume you've already done but just to confirm, you've defined the "WebContextURL" parameter in the Portaladmin system properties to match your external domain name and context, correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second depends on the specific reverse proxy you are using, but ArcGIS Enterprise relies on the "X-Forwarded-Host" header be included when proxying requests.&amp;nbsp; Some RPs like Apache httpd include this automatically.&amp;nbsp; Others like Nginx need it to be specifically set.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 17:34:59 GMT</pubDate>
    <dc:creator>JeffSmith</dc:creator>
    <dc:date>2023-11-27T17:34:59Z</dc:date>
    <item>
      <title>Home button sending to wrong URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353553#M14299</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I had thought I fixed the issue with the redirect_uri, but it seems to continue in other places. I found that when viewing a map, and clicking on the menu button and then home, it sends back to my internal portal URL, why could that be, and could I change it?&lt;/P&gt;&lt;P&gt;Enterprise 11.1 | Apache 2.4&lt;/P&gt;&lt;P&gt;When this occurs, I also am unable to access Notebooks, and any content as a redirect_uri appears, here is what it shows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue.gif" style="width: 787px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87150iE2DC8380146D77ED/image-dimensions/787x276?v=v2" width="787" height="276" role="button" title="issue.gif" alt="issue.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If anyone has any ideas, I'd greatly appreciate it, I assume this is why I'm not able to access the Organization settings through this as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 17:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353553#M14299</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2023-11-27T17:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Home button sending to wrong URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353620#M14301</link>
      <description>&lt;P&gt;Hi Cody,&lt;/P&gt;&lt;P&gt;Two thoughts here - first, I assume you've already done but just to confirm, you've defined the "WebContextURL" parameter in the Portaladmin system properties to match your external domain name and context, correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second depends on the specific reverse proxy you are using, but ArcGIS Enterprise relies on the "X-Forwarded-Host" header be included when proxying requests.&amp;nbsp; Some RPs like Apache httpd include this automatically.&amp;nbsp; Others like Nginx need it to be specifically set.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 17:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353620#M14301</guid>
      <dc:creator>JeffSmith</dc:creator>
      <dc:date>2023-11-27T17:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Home button sending to wrong URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353623#M14302</link>
      <description>&lt;P&gt;Hey Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thank you for the reply, I actually have not configured the WebContextURL, as far as I was aware that was only if a Web Adaptor was not used, I had attempted to use it previously, and it had seemingly broken the portal until it was reversed.&lt;/P&gt;&lt;P&gt;I should have included it and will edit to add it, but I use Apache in order to set this up, I wasn't aware of the automatic addition so I added it myself just in case, sadly does not change anything.&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 17:40:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353623#M14302</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2023-11-27T17:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Home button sending to wrong URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353652#M14303</link>
      <description>&lt;P&gt;The Web Adaptor registration page sets the "organization URL" for the portal. For example, if you access the registration page by going to &lt;A href="https://enterprise.domain.com/portal/webadaptor," target="_blank" rel="noopener"&gt;https://enterprise.domain.com/portal/webadaptor,&lt;/A&gt;&amp;nbsp;the portal will use &lt;A href="https://enterprise.domain.com/portal" target="_blank" rel="noopener"&gt;https://enterprise.domain.com/portal &lt;/A&gt;as its front-end URL. Any request to the portal that isn't made to that URL will redirect to the internal machine name of the portal.&lt;BR /&gt;&lt;BR /&gt;Below is a link describing the various ways the organization URL can be defined:&lt;BR /&gt;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/install/windows/determine-your-organization-s-url.htm" target="_blank" rel="noopener"&gt;https://enterprise.arcgis.com/en/portal/latest/install/windows/determine-your-organization-s-url.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you set up something in front of the Web Adaptor, (load balancer or reverse proxy), you'll need to set the Web Context URL and relevant X-Forwarded-Host header to make sure that Portal knows what URL it should use.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/administer/windows/using-a-reverse-proxy-server-with-portal-for-arcgis.htm" target="_blank" rel="noopener"&gt;https://enterprise.arcgis.com/en/portal/latest/administer/windows/using-a-reverse-proxy-server-with-portal-for-arcgis.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You'd also need to make sure you re-write the Location header in the event portal redirects, which can happen in certain situations:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Along with the&amp;nbsp;&lt;SPAN class=""&gt;X-Forwarded-Host&lt;/SPAN&gt;&amp;nbsp;header, your load balancer must be able to direct redirects (HTTP response codes 301 or 302). All&amp;nbsp;&lt;SPAN class=""&gt;Location&lt;/SPAN&gt;&amp;nbsp;headers should be rewritten on the load balancer to ensure that the fully qualified domain name (FQDN) and context of the response match the portal's&amp;nbsp;&lt;SPAN class=""&gt;WebContextURL&lt;/SPAN&gt;&amp;nbsp;value.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;In your case, you'd use the proxypassreverse directive with Apache:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://httpd.apache.org/docs/2.4/mod/mod_proxy.html" target="_blank" rel="noopener"&gt;https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypassreverse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This directive lets Apache httpd adjust the URL in the&amp;nbsp;Location,&amp;nbsp;Content-Location&amp;nbsp;and&amp;nbsp;URI&amp;nbsp;headers on HTTP redirect responses. This is essential when Apache httpd is used as a reverse proxy (or gateway) to avoid bypassing the reverse proxy because of HTTP redirects on the backend servers which stay behind the reverse proxy.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 18:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353652#M14303</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2023-11-27T18:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Home button sending to wrong URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353694#M14304</link>
      <description>&lt;P&gt;Hey Jonathan,&lt;/P&gt;&lt;P&gt;Oddly enough, I decided to just attempt and place the regular URL that I use into the web context url, and after about 15 minutes my Portal environment came back up and I am now able to see my Organizational settings and Licenses, but at this point, the Home button is still redirecting to the internal URL of the portal. I'm curious if this was possibly missed during an implementation when looking at the inspect console of the home button while on the reverse proxy, this is what I see, it should be like &lt;A href="https://arcgis-reverse-proxy/" target="_blank"&gt;https://arcgis-reverse-proxy/&lt;/A&gt; or something similar:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_0-1701112111669.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87182i2042DEB6E5EC800C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_0-1701112111669.png" alt="CodyPatterson_0-1701112111669.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 19:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353694#M14304</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2023-11-27T19:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Home button sending to wrong URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353782#M14305</link>
      <description>&lt;P&gt;Hi Cody,&lt;/P&gt;&lt;P&gt;Yes, that url that you highlighted in your screenshot should definitely be your reverse proxy url.&amp;nbsp; It should not point to your internal url.&amp;nbsp; One way to confirm that your WebContextURL setting is being read properly is to access the following url (adjusted to point to your portal):&lt;/P&gt;&lt;P&gt;&lt;A href="https://arcgis-reverse-proxy/context/sharing/rest/portals/self?f=json" target="_blank"&gt;https://arcgis-reverse-proxy/context/sharing/rest/portals/self?f=json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You don't need to be logged in; you can access this anonymously.&amp;nbsp; Search for "portalHostname".&amp;nbsp; The value should match what you specified in the WebContextURL parameter (the https protocol is not included).&amp;nbsp; It is what the Map Viewer should be using to create that link for the Home button.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 21:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353782#M14305</guid>
      <dc:creator>JeffSmith</dc:creator>
      <dc:date>2023-11-27T21:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Home button sending to wrong URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353799#M14306</link>
      <description>&lt;P&gt;Hey Jeff,&lt;/P&gt;&lt;P&gt;Thank you for another reply, I've went to that link and it does seem as if it's still my internal portal URL. As far as I'm aware, this and our Notebook server displaying invalid redirect_uri seems to be the only issue past what we have fixed so far.&lt;/P&gt;&lt;P&gt;Anything I should try next?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 21:16:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353799#M14306</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2023-11-27T21:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Home button sending to wrong URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353806#M14307</link>
      <description>&lt;P&gt;Hey Jeff,&lt;/P&gt;&lt;P&gt;An update, for some reason, it has changed, I have changed nothing, but it's all working now!&lt;/P&gt;&lt;P&gt;I wouldn't know for sure without seeing your link, so thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 21:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/home-button-sending-to-wrong-url/m-p/1353806#M14307</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2023-11-27T21:23:57Z</dc:date>
    </item>
  </channel>
</rss>

