UI5 / UI5/sample-webcomponents-react
Client-Side navigation not working
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 62
- Forks
- 23
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react, typescript
- Área
- cloud, frontend, web-dev
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100