-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I have deployed the react ui5 application in SAP BTP. When I introduce routing using react-router-dom it is saying File Not found
approuter->xs-app.json
{ "welcomeFile": "/salesorderapp" }
public->xs-app.json
{ "welcomeFile": "/index.html", "authenticationMethod": "route", "logout": { "logoutEndpoint": "/do/logout" }, "routes": [ { "source": "^(.*)$", "target": "$1", "service": "html5-apps-repo-rt", "authenticationType": "xsuaa" } ] }
App id is also added to manifest.json
The routing logic
<Routes> <Route path='/' element={<div>Main</div>}/> <Route path='detail' element={<div>Detail</div>}/> </Routes>
Initially the page is loading Main div . But when I hit the detail route, it is saying File not found
Metadata
Metadata
Assignees
Labels
No labels