react-router
react-router copied to clipboard
Redirects should merge properties before validating
For backward compatibility when a user navigates to my-space/search I want to redirect to my-space/search/partners. I tried the following approach, but got 'Uncaught Error: Invariant Violation: Cannot find a route named ":space/search/:searchType"'.
<Route name="app" path="/" handler={App}>
<Route name="search" path=":space/search/:searchType" handler={ArtworkSetListPage}/>
<Redirect from=":space/search" to=":space/search/:searchType" params={{searchType: "partners"}}/>
</Route>
I think the router should merge the arguments (:space and :searchType) before doing the validation.
hi tim!
duplicate #1034 (I think)
Agreed.
On Jun 16, 2015, at 9:32 PM, Ryan Florence [email protected] wrote:
hi tim!
duplicate #1034 (I think)
— Reply to this email directly or view it on GitHub.