UI5 / UI5/sample-webcomponents-react
Client-Side navigation not working
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 62
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing navigation from the Routes definition, then inspect approuter->xs-app.json, public->xs-app.json, and manifest.json together with the SAP BTP deployment setup. Verify that loading the detail route directly reaches the React application instead of returning File not found; the issue is complete when the detail view loads through client-side navigation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- cloud, frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100