Skip to content

Commit

Permalink
[changed] Default <Redirect from> to *
Browse files Browse the repository at this point in the history
Fixes #242
  • Loading branch information
mjackson committed Aug 29, 2014
1 parent 1064881 commit 5864531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/components/Redirect.js
Expand Up @@ -17,12 +17,12 @@ function createRedirectHandler(to) {

/**
* A <Redirect> component is a special kind of <Route> that always
* redirects when it matches.
* redirects to another route when it matches.
*/
function Redirect(props) {
return Route({
name: props.name,
path: props.from || props.path,
path: props.from || props.path || '*',
handler: createRedirectHandler(props.to)
});
}
Expand Down

0 comments on commit 5864531

Please sign in to comment.