diff --git a/modules/components/Redirect.js b/modules/components/Redirect.js index 00ba82dc92..852a81aa2e 100644 --- a/modules/components/Redirect.js +++ b/modules/components/Redirect.js @@ -17,12 +17,12 @@ function createRedirectHandler(to) { /** * A component is a special kind of 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) }); }