diff --git a/components/breadcrumb/demo/router.md b/components/breadcrumb/demo/router.md index b30a109c25..9521f0485f 100644 --- a/components/breadcrumb/demo/router.md +++ b/components/breadcrumb/demo/router.md @@ -44,9 +44,9 @@ var Home = React.createClass({ React.render(( - - - + + + diff --git a/components/breadcrumb/index.jsx b/components/breadcrumb/index.jsx index b28bb48b98..c5ec56f216 100644 --- a/components/breadcrumb/index.jsx +++ b/components/breadcrumb/index.jsx @@ -25,7 +25,7 @@ let Breadcrumb = React.createClass({ routes = this.context.router.state.branch; params = this.context.router.state.params; crumbs = routes.map(function(route, i) { - var name = route.name.replace(/\:(.*)/g, function(replacement, key) { + var name = route.breadcrumbName.replace(/\:(.*)/g, function(replacement, key) { return params[key] || replacement; }); var link;