We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1064881 commit 5864531Copy full SHA for 5864531
modules/components/Redirect.js
@@ -17,12 +17,12 @@ function createRedirectHandler(to) {
17
18
/**
19
* A <Redirect> component is a special kind of <Route> that always
20
- * redirects when it matches.
+ * redirects to another route when it matches.
21
*/
22
function Redirect(props) {
23
return Route({
24
name: props.name,
25
- path: props.from || props.path,
+ path: props.from || props.path || '*',
26
handler: createRedirectHandler(props.to)
27
});
28
}
0 commit comments