<?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>Question Re: HTML5 Application Repository - Client Side Routing problems in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/html5-application-repository-client-side-routing-problems/qaa-p/12490819#M4680261</link>
    <description>&lt;P&gt;Hi, were you able solve this issue ? I am facing the same&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 12:11:16 GMT</pubDate>
    <dc:creator>Badhusha</dc:creator>
    <dc:date>2022-11-21T12:11:16Z</dc:date>
    <item>
      <title>HTML5 Application Repository - Client Side Routing problems</title>
      <link>https://community.sap.com/t5/technology-q-a/html5-application-repository-client-side-routing-problems/qaq-p/12490818</link>
      <description>&lt;P&gt;In my scenario, I have a ReactJS Application hosted in the HTML5 App Repository on CF.&lt;/P&gt;
  &lt;P&gt;The App internally uses the BrowserRouter from ReactRouter to handle client side Routing.&lt;/P&gt;
  &lt;P&gt;The direct start of the app works and redirects successfully to the index.html and also the navigation within the App is working fine.&lt;/P&gt;
  &lt;P&gt;However if I want to Refresh the page or enter the Routing Part directly via the URL the HTML5 App Repo return a "File not found".&lt;/P&gt;
  &lt;P&gt;&amp;lt;url&amp;gt;.hana.ondemand.com/&amp;lt;repocloudservice&amp;gt;.&amp;lt;sap.app.id&amp;gt;-1.1.0/ --&amp;gt; works and redirected to index.html&lt;/P&gt;
  &lt;P&gt;&amp;lt;url&amp;gt;.hana.ondemand.com/&amp;lt;repocloudservice&amp;gt;.&amp;lt;sap.app.id&amp;gt;-1.1.0/test --&amp;gt; 404&lt;/P&gt;
  &lt;P&gt;How can I teach the App Router of the HTML5 Apps Repo to forward all subpaths to the App?&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;{ 
  "welcomeFile": "/index.html", 
  "authenticationMethod": "route",
  "logout": { 
    "logoutEndpoint": "/do/logout" 
  }, 
  "routes": [ 
   { 
     "authenticationType": "none", 
     "csrfProtection": false, 
     "source": "^/Northwind/(.*)$", 
     "destination": "Northwind", "target": "$1"
   }, 
   { 
     "source": "^(.*)$", 
     "target": "$1", 
     "service": "html5-apps-repo-rt", 
     "authenticationType": "xsuaa" 
   } 
  ]
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Jan 2022 10:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/html5-application-repository-client-side-routing-problems/qaq-p/12490818</guid>
      <dc:creator>daniel_endres</dc:creator>
      <dc:date>2022-01-03T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: HTML5 Application Repository - Client Side Routing problems</title>
      <link>https://community.sap.com/t5/technology-q-a/html5-application-repository-client-side-routing-problems/qaa-p/12490819#M4680261</link>
      <description>&lt;P&gt;Hi, were you able solve this issue ? I am facing the same&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/html5-application-repository-client-side-routing-problems/qaa-p/12490819#M4680261</guid>
      <dc:creator>Badhusha</dc:creator>
      <dc:date>2022-11-21T12:11:16Z</dc:date>
    </item>
  </channel>
</rss>

