-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Labels
Description
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?