UI5 / UI5/sample-webcomponents-react
Client-Side navigation not working
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 62
- Fork
- 23
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react, typescript
- Ambito
- cloud, frontend, web-dev
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100