From 586453181b222ed03406560a50e081a34a824a54 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Thu, 28 Aug 2014 23:59:14 -0700 Subject: [PATCH] [changed] Default to * Fixes #242 --- modules/components/Redirect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }); }