4Catalyzer/found

Routing improper behavior when back button is pressed

pkrakesh opened this issue · 0 comments

I am using found in my application like this:

const Router = createFarceRouter({
    historyProtocol: new BrowserProtocol(),
    historyMiddlewares: [queryMiddleware],
    routeConfig: makeRouteConfig(
        <Route path="/">

            <Route Component={App} />

            <Route path="/login">
                <Route Component={LoginPage} />
            </Route>

            <Route path="/signup">
                <Route Component={SignupPage} />
            </Route>

            <Route path="/home">
                <Route Component={HomeViewWrapper} />
                <Route path="add-source" Component={AddSourcePageContainer} />
            </Route>

        </Route>
    ),

It works correctly when pressing back and forward button for /login and /signup from / but, when pressing browser back button from /home/add-source page, the application exits instead of going back to /home. What is the correct implementation of the routing? Kindly help.