Skip to content

Warning: You cannot PUSH the same path using hash history #4467

Closed
@impguard

Description

@impguard

This is very similar to #2431, where I'm getting this warning.

Luckily, remix-run/history#43 seems to fix it in the general case, but I'm getting this warning in a very specific instance.

With a basic application with:

    <Router history={hashHistory}>
        <Route path='/' component={App}>
            <IndexRoute component={GettingStarted} />
            <Route path="reports" component={Reports} />
            <Route path="templates" component={Templates} />
        </Route>
    </Router>

The first time I load the application at http://domain-name/#/ and click on a Link to '/', I get this error. Afterwards, I never see it again.

Is this intended or did I set something up incorrectly?

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