Skip to content

Client-Side navigation not working #78

@BadhushaAkhthaar

Description

@BadhushaAkhthaar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions