Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client-Side navigation not working #78

Open
BadhushaAkhthaar opened this issue Nov 22, 2022 · 0 comments
Open

Client-Side navigation not working #78

BadhushaAkhthaar opened this issue Nov 22, 2022 · 0 comments

Comments

@BadhushaAkhthaar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant