Skip to content

Commit

Permalink
Merge pull request remix-run#182 from jonasi/redirect-add-name
Browse files Browse the repository at this point in the history
Add name to redirect route
  • Loading branch information
ryanflorence committed Aug 8, 2014
2 parents 3da03ab + 13f9e1f commit 7f2b2b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/components/Redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var Route = require('./Route');

function Redirect(props) {
return Route({
name: props.name,
path: props.from,
handler: createRedirectClass(props.to)
});
Expand Down

0 comments on commit 7f2b2b7

Please sign in to comment.