Skip to content

Routing improper behavior when back button is pressed #986

Description

@pkrakesh

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions