ui5-webcomponents-sample-react icon indicating copy to clipboard operation
ui5-webcomponents-sample-react copied to clipboard

Client-Side navigation not working

Open BadhushaAkhthaar opened this issue 3 years ago • 0 comments

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

BadhushaAkhthaar avatar Nov 22 '22 05:11 BadhushaAkhthaar