Skip to content

Default route nested in anonymous route no longer working #1939

@jscheid

Description

@jscheid

It would be nice if this worked in 1.0:

    <Route path="/(:locale)">
      <Route path="login" component={Login}>
      <Route component={App}>
        <IndexRoute component={Dashboard} />
        /* more routes here */
      </Route>
    </Route>

In 0.13 I had it working like so:

    <Route handler={Locale} path="/:locale?">
      <Route name="login" handler={Login} />
      <Route handler={App} path="">
        <DefaultRoute name="dashboard" handler={Dashboard} />
      </Route>
    </Route>

But now, path /en/ gets resolved to Locale rather than Dashboard.

I've tried various ways of rearranging the routes but can't seem to get it to resolve to Dashboard no matter what I try. Perhaps I'm missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions